Raw Source
sloba985 / The West - tw-db.info Cloth Calc [eng]

// ==UserScript==
// @name The West - tw-db.info Cloth Calc [eng]
// @version 0.46 Rev. 1
// @description The West Script: Cloth Calculation for game version 1.34 or higher
// @author Bluep, scoobydoo, Dun, Petee [tw-db.info]
// @namespace http://tw-db.info
// @grant none
// @website http://tw-db.info
// @include http://*.the-west.*/game.php*
// @include https://*.the-west.*/game.php*
// @include http://*.tw.innogames.*/game.php*
// @include https://*.tw.innogames.*/game.php*
// @downloadURL https://tw-db.info/cache/userscripts/clothcalc/clothcalc_eng.user.js
// @updateURL https://tw-db.info/cache/userscripts/clothcalc/clothcalc_eng.meta.js
// ==/UserScript==
(function(f){var d=document,s=d.createElement('script');s.setAttribute('type','application/javascript');s.textContent='('+f.toString()+')()';(d.body||d.head||d.documentElement).appendChild(s);s.parentNode.removeChild(s)})(function(){if(isDefined(window.TWDB)){new west.gui.Dialog(TWDB.script.name,'<div class="txcenter"><b><br>The UserScript ClothCalc is installed twice, with two different language versions. You will have to uninstall one of them for the script to work properly!</br></b></div>',west.gui.Dialog.SYS_WARNING).addButton("OK").show();}else{TWDB = {};TWDB.script = new Object({version: 46,revision: 1,name: "The West - tw-db.info Cloth Calc",update: "tw-db.info/cache/userscripts/clothcalc/clothcalc_eng.user.js",check: "tw-db.info/cache/userscripts/clothcalc/version",url: "tw-db.info",protocol: location.protocol.match(/^(.+):$/)[1],gameversion: 2.53,lang:"eng"});try{TWDB.script.notes=jQuery.parseJSON('[{\"version\":\"46\",\"notes\":\"[buyTip] If you have learned a recipe, it won\\u0027t be shown as new anymore. <br\\\/>\\n[marketselldialog] If there is no selling price at the market, it takes the half of the buying price <br\\\/>\\n[directsleep] Hotel-shortlink for townless players added <br\\\/>\\n[nowofnuggets] Re-added and fixed for future events <br\\\/>\\n[chestAnalyser] Layout fixed\"},{\"version\":\"45\",\"notes\":\"[misc] Updated fort ranks to include sergeant <br \\\/>\\n[misc] Function bonds instead of nuggets removed, no more needed <br \\\/>\\n[misc] Jobanalyser for RU server fixed <br \\\/>\\n[misc] MarketMap for beta fixed <br \\\/>\"},{\"version\":\"44\",\"notes\":\"Great news! <b>Tom Robert<\\\/b> has generously offered to take over ClothCalc development! We owe him a lot of thanks for the following features and fixes: <br>\\n[questbook] Toggle between start and end text of completed quests in the questbook is fixed. <br>\\n[calculator] Battle formula updated. <br>\\n[inventory] If you have an upgraded item, the base item won\\u0027t be shown as new anymore. <br>\\n[inventory] If you placed a bid on an item, it won\\u0027t be shown as new anymore. <br>\\n[market] Item count in market map fixed <br>\\n[selltip] High level weapons fixed\"},{\"version\":\"43\",\"notes\":\"[main *new*] Equip items button in ClothCalc window<br>\\n[tasklist] labor point hints have a star background now when you\\u0027ve equipped your best cloth<br>\\n[bugfix] job list in ClothCalc window is sorted again on startup<br>\\n[bugfix] bonus job import is working again<br>\\n[bugfix] alternative currency in tombolas working again\\n\"},{\"version\":\"42\",\"notes\":\"[misc] changing the amount in Crafting works the same way now as in Skills window, plus mouse wheel support in both<br \\\/>\\n[misc] labor point info on Task List switchable now and new hints there<br \\\/>\\n[misc *new*] option to sell all but one of the selected item to the Wandering Trader<br \\\/>\\n[misc *new*] option to disable scrollbars on small screens or when moving windows too far<br \\\/>\\n[misc *new*] option to reposition event counters (event currency, Hiro\\u0027s script) on wide screens\"},{\"version\":\"41\",\"notes\":\"[main] support for the upcoming new item IDs<br>\\n[main] automatic conversion of CC data (most of all statistics) for the ID update<br>\\n[main] job search automatically selects the job when search is narrowed down to only one<br>\\n[main bugfix] using cursor keys in job search works again<br>\\n[settings] rearranged the options and added captions for more clarity<br>\\n[jobs *new*] ClothCalc button in job windows<br>\\n[jobs *new*] display of labor points in job window title<br>\\n[jobs *new*] display of labor points in the task queue<br>\\n[misc *new*] instant hotel button on town signs<br>\\n[misc *new*] show BBCodes in received telegrams<br>\\n[misc *new*] show values on experience bar - thanks to <a href=\\\"https:\\\/\\\/greasyfork.org\\\/scripts\\\/3935-the-west-script-suite\\\">Leones\\\/Slygoxx<\\\/a><br>\\n[misc *new*] option to disable the Shop SALE sign below the saloon<br>\\n[misc *new*] you can assign a hotkey to ClothCalc in the <u>game<\\\/u> settings -&gt; Keyboard shortcuts<br>\\n[misc *new*] option to minimize the Chat rooms GUI element bottom left (compatible with Diggo\\u0027s Friends Script)<br>\\n[pin items] redesigned to fit the new inventory layout<br>\\n[main] option to open the Wear window minimized\"},{\"version\":\"39\",\"notes\":\"Support for HTTPS <br \\\/>\\r\\nKO timer ready for beta protection system\"},{\"version\":\"38\",\"notes\":\"[pin items] feature to pin items in the recently used section of Inventory <br\\\/>\\n[analyser] job analyser can now switch to display all found products and items <br\\\/>\\n[bugfixes] selltip unequip <br\\\/>\"},{\"version\":\"37\",\"notes\":\"[bugfix] fix for self opening chat when chat extension was enabled <br>\\n[bugfix] fix for buy tip in the new shop <br>\\n[market] option to save your preferences in the market sell dialog <br>\\n[crafting] reminder for the level 600 crafting recipe waiting periods <br>\\n[settings] tiny improvements to the TW-DB settings dialog <br>\\n[misc] duel motivation bar is replaced by a K.O. timer when you died <br>\\n[misc] added option to avoid nuggets as default payment in event games (must be explicitly enabled) <br>\\n[misc] added option to skip the Premium dialog when using fetch all in the market (must be explicitly enabled)\"},{\"version\":\"36\",\"notes\":\"[main] ready for the new calculator engine (comming soon) <br \\\/>\\r\\n[main] actual bonus level shown in clothcalc window <br \\\/>\\r\\n[main] bugfixes (attribute images in customs, level based attributes NaN, ...)\"},{\"version\":\"35\",\"notes\":\"[main] Black Friday items work with the calculator now <br \\\/>\\r\\n[main] calculation data update is necessary less often (more work done on the client) <br \\\/>\\r\\n[main] ready for adding fair construction job\"},{\"version\":\"34\",\"notes\":\"[*NEW*] [buytip] fixed major bug, data update necessary!<br \\\/>\\r\\n[main] job list displays rewards for the best equipment, current reward for the selected job displayed separately <br \\\/>\\r\\n[main] various bugfixes, some performance issues addressed, more precise reward calculation <br \\\/>\\r\\n[main] fixed job reward calculation (+-1 precision formulas), data update needed! <br \\\/>\\r\\n[main] added sorting jobs by danger <br \\\/>\\r\\n[main] now checks for duplicit clothcalc installation <br \\\/>\\r\\n[sleep] added vertical scrollbar\"},{\"version\":\"33\",\"notes\":\"[main] ready for 2.08.1 <br \\\/>\\r\\n[questwiki] added option to switch between introduction \\\/ completion texts in the quest book (already last version) <br \\\/>\\r\\n[questwiki] added option to always show full quest texts (default OFF!) <br \\\/>\\r\\n[jobs] motivation calculation adjusted for 25% steps <br \\\/>\\r\\n[main] BUGFIXes: server data loading sometimes got stuck; CC not working for players below level 10 <br \\\/>\\r\\n[buytip] fix for the new Mobile Trader window\"},{\"version\":\"32\",\"notes\":\"small update for game version 2.06; hotfix for beta worlds\"},{\"version\":\"31\",\"notes\":\"tiny update for game version 2.05\"},{\"version\":\"30\",\"notes\":\"script is now ready for gameversion 2.04\\r\\nthere are still some fields to fix, but the most parts should work \"},{\"version\":\"25\",\"notes\":\"[bonusjobs] security query before reset<br \\\/>\\r\\n[bonusjobs] sorting of the export<br \\\/>\\r\\n[chestanalyser] some stats for future drops of chests, bags & collector cards<br \\\/>\\r\\n[marketreminder] add reminder for market offers<br \\\/>\\r\\n[other] button for deposit money<br \\\/>\"},{\"version\":\"24\",\"notes\":\"[ClothCalc] Bugfix, Motivation was not included at Wages<br \\\/>\\r\\nFeatures listed below comes from an other Userscript \\\"stewues The West Tools\\\"<br \\\/>\\r\\nAs he decided to stop Offering his tool, he has asked me to include this Features into our Script.<br \\\/>\\r\\nFirst at this Point <b>Thanks a lot!<\\\/b> Stewue for your hard Work and your Decision to Offer this Features now through this Script.<br \\\/>\\r\\n- button for sleeping into best hotel room or fort barrack<br \\\/>\\r\\n- confirmation prompt before quest cancel<br \\\/>\\r\\n- hint to deposit cash<br \\\/>\\r\\n- button for last post on ingameforum threads<br \\\/>\\r\\n- moved button for new post on ingameforum to upper menu<br \\\/>\\r\\n- add duelmotivation into userinterface<br \\\/>\\r\\n- remove automation pa hints, like the nugget picture on work queue<br \\\/>\\r\\n- activate Fortrecruitment also for non generals and captains<br \\\/>\\r\\n- enhance the Fortrecruitment through some more Features<br \\\/>\\r\\n- the market map<br \\\/>\"},{\"version\":\"23\",\"notes\":\"[general] script is ready for version 2.03, all features should be working<br \\\/>\\r\\n[clothcalc] added the wages values, honour to petee for his great work to find out the wage formula<br \\\/>\"},{\"version\":\"22\",\"notes\":\"[clothcalc] fixed Bug with faulty Detection of corrupted Cache<br \\\/>\\r\\n[questwiki] Show tw-db Link on Questwindow<br \\\/>\\r\\n[questswiki] Show total Amount of Items at Inventory<br \\\/>\\r\\n[questswiki] Button for Open the ClothCalc Window<br \\\/>\\r\\n[buytip] added new sets<br \\\/>\\r\\n[buytip] fort boni of natty where wrong<br \\\/>\"},{\"version\":\"21\",\"notes\":\"[general] fixed failed script start at gameversion 2.02<br \\\/>\\r\\n[errorlog] fixed Error through new Notification-Bar Object at gameversion 2.02<br \\\/>\\r\\n[settings] added Group for the SellTip Settings<br \\\/>\\r\\n[SellTip] add Option for never sell Set-Items<br \\\/>\\r\\n[bonusjobs] discovered Bonus Jobs are now cached<br \\\/>\\r\\n[bonusjobs] add Export and Import for discovered Bonus Jobs<br \\\/>\\r\\n[other] Option to remove the Game-Hints on Notification Bar, which could not be disabled through Game-Settings<br \\\/>\\r\\n[other] Option for a Scroll-To Inpute Field on Minimap<br \\\/>\\r\\n[ClothCalc] fixed the Bug, that Joblist is sometime not clickable<br \\\/>\\r\\n[ClothCalc] fixed the Bug, missing fastes animal on bestwears without animal<br \\\/>\\r\\n[chat] fixed bug for missing smiley and color inject on chat windows, which are already opend on gameloading<br \\\/>\\r\\n[general] removed script parts for gameversion 1.36\"},{\"version\":\"20\",\"notes\":\"[general] reworked the Script for the-west Version 2.0 <br \\\/>\\r\\n[general] Release Notes for Script is added ingame <br \\\/>\\r\\n[Importer] the Import Userscript is now included in ClothCalc Userscript (for Gameversion 1.36 you will still need it) <br \\\/>\\r\\n[Importer] the Alliance Import Script is now directly available through the script <br \\\/>\\r\\n[ClothCalc] Basic Function is working (showing best cloth) <br \\\/>\\r\\n[ClothCalc] <b>Values for Wages and Danger when sorting the Joblist are wrong!<\\\/b> , so temporarly this feature this sorting is removed until our date is up2date<br \\\/>\\r\\n[ClothCalc] preselecting the selected Job on Minimap is ready for Version 2.0 <br \\\/>\\r\\n[ClothCalc] the sorted job List (experience, wages) could be changed from normal mode to value per minute to value per energy point <br \\\/>\\r\\n[ClothCalc] Joblist is reworked, jobs could now be searched and jobs have little popup with complete job data <br \\\/>\\r\\n[FavoriteJob] this Feature has been removed because it now emulates a premium feature <br \\\/>\\r\\n[SearchJob]the jobsearch is Version 2.0 ready, the direct start of one of the four shown job is a pa automation only feature (innos decision]<br \\\/>\\r\\n[ReportAnalyser] the basic function is reworked for game version 2.0 <br \\\/>\\r\\n[ReportAnalyser] detailed job report and detailed item report will be added later <br \\\/>\\r\\n[Chat] is ready for Version 2.0 <br \\\/>\\r\\n[BuyTip] is ready for Version 2.0<br \\\/>\\r\\n[BuyTip] set bonus is now also included here<br \\\/>\\r\\n[BuyTip] also shown on market now<br \\\/>\\r\\n[Collector] is ready for Version 2.0<br \\\/>\\r\\n[Collector] also shown on market now<br \\\/>\\r\\n[SellTip] is ready for Version 2.0<br \\\/>\\r\\n[BonusJobs]Bonus Jobs you\\u2019ve found are now shown on minimap<br \\\/>\"},{\"version\":\"10\",\"notes\":\"[ClothCalc] added Favorite Job Feature (petee)<br \\\/>disabled script for TW2.0\"},{\"version\":\"9\",\"notes\":\"[Chat] added popup on permanent whisper icon<br \\\/>\\r\\n[Chat] history ist now saved on localStorage (color, whisper)<br \\\/>\\r\\n[Chat] added permanent whisper to player menu<br \\\/>\\r\\n[Chat] added inputfield to direct input color number<br \\\/>\\r\\n[Chat] added bold and captialize options<br \\\/>\\r\\n[analyser] added table footer with overall values<br \\\/>\\r\\n[analyser] added statistics reset function<br \\\/>\\r\\n[analyser] exclude questitems from item statistic<br \\\/>\\r\\n[analyser] granular report for items (Item-Report), click on items at new table footer<br \\\/>\\r\\n[calc] added option to switch position of cloth calc window between left and right<br \\\/>\\r\\n[enhancements] added feature so you can hold the +\\\/- buttons in the skills window to change the value faster<br \\\/>\\r\\n\"},{\"version\":\"8\",\"notes\":\"added settings window<br \\\/>\\r\\nadded chat features (permanent wisper, color, smilies)<br \\\/>\\r\\nadded Report Analyser<br \\\/>\\r\\nadded second Buytip Icon if item gives bonus for current selected job<br \\\/>\\r\\nfixed with * marker for new items on market<br \\\/>\\r\\nfixed several small bugs on job search feature<br \\\/>\\r\\nfixed buyTip was not shown without calcdata update<br \\\/>\"},{\"version\":\"7\",\"notes\":\"add new feature jobsearch (petee)<br \\\/>\\r\\n\\\"new\\\" Icon will now also look at Wear Items (thx Inno optimizing your Wear Object)<br \\\/>\\r\\nchanged max gameversion to 1.36 for coming new gameversion (no problems found with new gameversion)<br \\\/>\\r\\nadded new Script Loader with Info on footer (next to servertime)<br \\\/>\"},{\"version\":\"6\",\"notes\":\"code cleaning and optimising<br \\\/>\\r\\nupdate minimap on jobchange if minimap is opend<br \\\/>\\r\\nset limit for custom jobs from 10 to 15<br \\\/>\\r\\nfixed several problems with attributes on customs<br \\\/>\\r\\nadded images for fort-customs and for attributes on customs<br \\\/>\\r\\nadded icon on Traders with tooltip for which jobs this item would give a better bonus<br \\\/>\\r\\nadded icon on Inventory with tooltip of bonus on selected job<br \\\/>\\r\\non rev. 59 added colored tooltip for better visibility<br \\\/>\\r\\non rev. 59 added icon for unused items on inventory<br \\\/>\"},{\"version\":\"5\",\"notes\":\"eleminating browser freezes<br \\\/>\\r\\nmaking custom section customisable<br \\\/>\\r\\nshowing best and current \\\"job\\\" values on custom section<br \\\/>\\r\\nchanges on cache system<br \\\/>\\r\\ncorrected code verification on rev. 34<br \\\/>\"},{\"version\":\"4\",\"notes\":\"fixed removed indexedDB.setVersion on Mozilla<br \\\/>\\r\\nbetter error handling of indexedDB, click on \\\"cache error\\\" icon will initiate a reset of indexedDB<br \\\/>\\r\\nsolution for Cache Problem on Scriptupdate with Chrome (not working on this update :( )<br \\\/>\\r\\nearlier button add, opacity to 50% until initializing isn\\u0027t finished<br \\\/>\\r\\nten second sleeper on initializing to handle chrome freezes<br \\\/>\\r\\nadded marker for items on traders which are not at own inventory<br \\\/>\\r\\nadded \\\"*\\\" prefix on market for all items which are not at own inveontory<br \\\/>\\r\\nfixed wrong levelbonus for soldiers<br \\\/>\\r\\nprevent script from be active in more than one language<br \\\/>\"},{\"version\":\"3\",\"notes\":\"fixed problem with need of cache update<br \\\/>\\r\\nfixed problem that inventory window was closed<br \\\/>\\r\\nadded best animal to every job<br \\\/>\\r\\nadded mark of weared items\"},{\"version\":\"0\",\"notes\":\"** please enter some notes for this version **\"}]');}catch(e){};TheWestApi.version=Game.version=parseInt(Game.version,10)?Game.version:TWDB.script.gameversion;TWDB.script.gameversion=Game.version;TWDB.script.isDev=function(){return this.check.search("dev_version")!==-1};Number.prototype.round=function(e){var t=Math.pow(10,e);return Math.round(this*t)/t};String.prototype.twdb_twiceHTMLUnescape=function(){return $($.parseHTML($($.parseHTML(String(this))).text())).text()};window.debLog=TWDB.script.isDev()&&console.info?function(e){console.info.apply(console,["CC:"].concat(Array.prototype.slice.call(arguments)))}:function(e){};TWDB.images={iconName:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAqBJREFUeNqslEtvElEUxy90gOHRDhQpDBIEaysKNQZpYpqiLroxaUjUrV/Bpd/BD6IrdySGmK5cVzf1sSgNgrzDAB0QBpgZxnPonYZSSLvwJj/unXMP/3vOfRyDpmnkfzUGf1Kp1Lw5A7BEwTYGVNpfaul0+kxsQbMAHOCmi/aBFtAF5IWRLbC7gLtPGOalPBpZG7J8cmKxHIDtN3AKaNcVw6gCYZNp/4XV+kaRJNKs16V3wSBG9pdyKTrjgr1aBsK7LPtqPBwStdsl1mbTGiuX98HuB6zzIpgnZgJuAHfWNc2ndjpEabcn3KtUtnERupfG64jZAH7XbN5bHg5ZVR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EictXGwqS5Dgb/9758/Pr17iRXtXTcj1MaAIcPD+uyBNX7GOk7aqkAyzs4UGa1b0O1jqs2Q4GgCVARU8f///4nNtQ5aKj6GWqlOFnBFbgZqDNk+IJMgiiCgp74GqNTPUAuiyN9CG6jIFk0RBACVBpvpgxXpMmR5oZsEAXBFfubaUIejWeekreKlr4Hd4X0NNS7aqkHGOjFW+qGm2giHp3pYAhXhCQIvUy2GJFeLtfO7l05vwYqmd1d6GGsyuOuq2aopminJApGVqpylqpyFspypooyFMkjEXFnOXFkOAHW5yBE3A5XXAAAAAElFTkSuQmCC"};TWDB.Util=function(e){var t={};var n=function(t,n){var r="twdb_css";if(typeof n!=="undefined"&&typeof n==="string"){r+="_"+n.replace(/\W+/g,"")}if(e("head style#"+r).append("\n"+t).length===1){return}else{e("head").append(e('<style type="text/css" id="'+r+'">').text(t))}};t.addCss=function(e,t){return n(e,t)};var r=null,i=function(){if(r===null){r=isDefined(ItemManager.getByBaseId)}return r};t.isNewIDsystem=function(){return i()};var s=function(){var e=[],t,n,r="twdb_"+Character.playerId+"_",i;if(localStorage.getItem(r+"embackup")===true){return}for(i=0;i<localStorage.length;i++){t=localStorage.key(i);if(t.search(r)===0&&t.search(/(marketreminder|notes|settings|statistic)$/i)!==-1){e.push({key:t,newkey:"backup_"+t,val:localStorage.getItem(t)})}}for(i=0;i<e.length;i++){localStorage.setItem(e[i].newkey,e[i].val);console.log("key "+e[i].key.substr(r.length)+" saved.")}localStorage.setItem(r+"embackup",true)};t.backupData=function(){return s()};t.idMigrationDone=function(){var e=TWDB.Cache.load("migration")||{};e.itemid=e.itemid||{};return e.itemid.migcomplete===true};var o=function(){if(!TWDB.Util.isNewIDsystem()){return}var t=["barracks","bonusdisplay","bonusjobs","chathistory","embackup","marketreminder","migration","msdsettings","notes","settings","statistic"],n={keys:true},r=[],i,s,o,u,a,f,l="twdb_"+Character.playerId+"_",c=TWDB.Cache.load("migration")||{};c.itemid=c.itemid||{};if(c.itemid.migcomplete===true){return}var h=function(e){return JSON.parse(JSON.stringify(e))};var p=function(e){return parseInt(e,10)*1e3};for(u=0;u<localStorage.length;u++){i=localStorage.key(u);if(i.search(l)===0){r.push(i.substr(l.length))}}for(u=0;u<r.length;u++){i=r[u];if(t.indexOf(i)===-1){localStorage.removeItem(l+i)}else{if(c.itemid[i]===true){n[i]=true;continue}switch(i){case"marketreminder":s=TWDB.Cache.load(i)||{};for(a in s){if(s[a].item){s[a].item=p(s[a].item)}}TWDB.Cache.save(i,s);c.itemid[i]=true;TWDB.Cache.save("migration",c);break;case"notes":s=TWDB.Cache.load(i)||"";o=s.replace(/\[item=(\d+)\]/gi,function(e,t){return"[item="+p(t)+"]"});if(o!==s){TWDB.Cache.save(i,o)}c.itemid[i]=true;TWDB.Cache.save("migration",c);break;case"settings":s=TWDB.Cache.load(i);if(isDefined(s.pinnedItems)&&isDefined(s.pinnedItems.length)){for(a=0;a<s.pinnedItems.length;a++){s.pinnedItems[a]=p(s.pinnedItems[a])}TWDB.Cache.save(i,s)}c.itemid[i]=true;TWDB.Cache.save("migration",c);break;case"statistic":s=TWDB.Cache.load(i);o={};var d,v,m,g,y,b;for(d in s.chest){f=p(d);o[f]=h(s.chest[d]);o[f].items={};for(v in s.chest[d].items){o[f].items[p(v)]=s.chest[d].items[v]}}s.chest=h(o);for(m in s.job){if(!JobList.getJobById(m)){continue}o={};for(g in s.job[m]){o[g]={};if(g==="products"){for(y in s.job[m][g]){o[g][p(y)]=h(s.job[m][g][y])}}else if(e.isNumeric(g)){for(b in s.job[m][g]){if(b==="items"||b==="extraitems"){o[g][b]={};for(v in s.job[m][g][b]){o[g][b][p(v)]=s.job[m][g][b][v]}}else{o[g][b]=h(s.job[m][g][b])}}if(!isDefined(o[g].duration)||!e.isNumeric(o[g].duration)){o[g].duration=0}}else{o[g]=h(s.job[m][g])}}s.job[m]=h(o)}TWDB.Cache.save(i,s);c.itemid[i]=true;TWDB.Cache.save("migration",c);break;default:break}n[i]=true}}TWDB.Cache.save("keys",n);c.itemid.migcomplete=true;TWDB.Cache.save("migration",c)};t.idMigrator=function(){return o()};var u=function(e){if(localStorage.getItem("twdb_"+Character.playerId+"_embackup")!=="TRUE"){return}var t=[],n,r,i="backup_twdb_"+Character.playerId+"_",s;for(s=0;s<localStorage.length;s++){n=localStorage.key(s);if(n.search(i)===0){t.push(n)}}if(e===true){for(s=0;s<t.length;s++){localStorage.removeItem(t[s])}localStorage.removeItem("twdb_"+Character.playerId+"_embackup")}else{for(s=0;s<t.length;s++){localStorage.setItem(t[s].substr(7),localStorage.getItem(t[s]))}}};t.simpleRestore=function(e){return u(e)};t.wrapBetaGetItem=function(){ItemManager.__twdb__get=ItemManager.__twdb__get||ItemManager.get;ItemManager.get=function(e){try{return ItemManager.__twdb__get(e)}catch(t){console.log(t);TWDB.script.isDev()&&console.trace&&console.trace();return undefined}}};return t}(jQuery);TWDB.ClothCalc={uid:"twdb_clothcalc",_sk4attr:{strength:[5,6,7,8,9],flexibility:[10,11,12,13,14],dexterity:[15,16,17,18,19],charisma:[20,21,22,23,24]},_type2id:{animal:1,body:2,foot:3,head:4,left_arm:5,neck:6,right_arm:7,yield:8,pants:9,belt:10},_id2type:{1:"animal",2:"body",3:"foot",4:"head",5:"left_arm",6:"neck",7:"right_arm",8:"yield",9:"pants",10:"belt"},_skill2id:{strength:1,flexibility:2,dexterity:3,charisma:4,build:5,punch:6,tough:7,endurance:8,health:9,ride:10,reflex:11,dodge:12,hide:13,swim:14,aim:15,shot:16,pitfall:17,finger_dexterity:18,repair:19,leadership:20,tactic:21,trade:22,animal:23,appearance:24},_id2skill:{1:"strength",2:"flexibility",3:"dexterity",4:"charisma",5:"build",6:"punch",7:"tough",8:"endurance",9:"health",10:"ride",11:"reflex",12:"dodge",13:"hide",14:"swim",15:"aim",16:"shot",17:"pitfall",18:"finger_dexterity",19:"repair",20:"leadership",21:"tactic",22:"trade",23:"animal",24:"appearance"},_class2id:{greenhorn:1,adventurer:2,duelist:3,worker:4,soldier:5},data:{skills:{},items:{},jobs:{},custom:{}},calcdata:{skills:{},items:{},jobs:{},custom:{},animals:[],buyTip:{},jobBoni:{},used:{},loaded:false},ready:false,loaded:false,up2date:true,gui:{job:{},custom:{}},bidsLoading:false,bids:{},getBids:function(){if(this.bidsLoading)return;this.bidsLoading=true;var e=this;Ajax.remoteCall("building_market","fetch_bids",{},function(t){if(t.error)return(new UserMessage(t.msg,UserMessage.TYPE_ERROR)).show();var n=t.msg.search_result;for(var r=0;r<n.length;r++){e.bids[n[r].item_id]=1}e.bidsLoading=false})},recLoading:false,recipes:{},getLearned:function(){if(this.recLoading)return;this.recLoading=true;var e=this;Ajax.remoteCall("crafting","",{},function(t){var n=t.recipes_content;if(n)for(var r=0;r<n.length;r++)e.recipes[n[r].item_id]=1;e.recLoading=false})},init:function(){if(this.ready){return}var e=this;this.jobs.setParent(this);this.joblist.parent=this;this.customs.setParent(this);this.bag.setParent(this);this.getBids();this.getLearned();TWDB.Eventer.set("TWDBdataLoaded",function(){e.handleTWDBData()});this.gui.copyright=jQuery('<div style="position:absolute;bottom:0px;left:0px;height:15px;display:block;font-size:10px;color:#000000;">.:powered by tw-db team:. | <a href="https://tw-db.info" style="font-weight:normal;color:#000000;" target="_blank">.:tw-db.info:.</a> | '+TWDB.script.version/100+" rev. "+TWDB.script.revision+"</div>");this.gui.cache=jQuery('<div style="position:absolute;top:10px;right:8px;width:20px;height:20px;cursor:pointer;" />');this.gui.bag=jQuery('<div style="position:absolute;top:95px;left:1px;width:252px;height:186px;" />');this.BagInt=window.setInterval(function(){e.finishInit()},100);this.data.custom=TWDB.Settings.get("custom",{1:{id:1,type:"speed",para:{},name:"Speed"},2:{id:2,type:"custom",para:{9:1},name:"max Health"},3:{id:3,type:"regen",para:{},name:"Health Regeneration"},4:{id:4,type:"fort",para:{att:200,def:20,health:100,type:0},name:"Fortbattle Attacker (Att)"},5:{id:5,type:"fort",para:{att:20,def:200,health:100,type:0},name:"Fortbattle Attacker (Def)"},6:{id:6,type:"fort",para:{att:200,def:20,health:100,type:1},name:"Fortbattle Defender (Att)"},7:{id:7,type:"fort",para:{att:20,def:200,health:100,type:1},name:"Fortbattle Defender (Def)"},8:{id:8,type:"duel",para:{12:1,15:1,16:1,24:1},name:"Range Dueler (Att)"},9:{id:9,type:"duel",para:{12:1,15:1,16:1,21:1},name:"Range Dueler (Def)"},10:{id:10,type:"duel",para:{6:1,7:1,11:1,15:1},name:"Melee Dueler"}});if(!TWDB.Updater.wasUpdated()){var t=TWDB.Cache.load("calcdata");if(typeof t==="object"&&t!==null&&isDefined(t.loaded)){this.calcdata=t}}},finishInit:function(){if(typeof this.BagInt==="undefined"){return}if(Bag.loaded){window.clearInterval(this.BagInt);delete this.BagInt;this.loaded=true;this.ready=true;this.addButton();var e=this;HotkeyManager.register(new Hotkey("twdbcc","","tw-db ClothCalc",function(){e.open()}));if(isDefined(this.open_param)){this.open(this.open_param[0],this.open_param[1]);delete this.open_param}}},addButton:function(){if(this.ready===false){return}var e=this;var t=jQuery('<div title="tw-db.info ClothCalc " class="menulink" />').css("background-image","url("+TWDB.images.button+")").css("background-position","0px -25px").mouseenter(function(){jQuery(this).css("background-position","-25px -25px")}).mouseleave(function(){jQuery(this).css("background-position","0px -25px")}).click(function(){e.open()});jQuery("#TWDB_ClothCalc_menubuttons .menucontainer_bottom").before(t)},isBetterItem:function(e){var t=ItemManager.get(e);if(isDefined(t)&&isDefined(t.set)){debLog("isBetterItem - ID",e,t,"is seen as new set item");return true}var n,r,i,s;for(n in this.calcdata.jobs){var o=this.getClothForJob(n);if(!isDefined(o)){debLog("isBetterItem - job ID",n,"has no Calc data");return true}r=0;i=TWDB.Calc.getItemBonusForJob(e,n);if(isDefined(o[TWDB.ClothCalc._type2id[t.type]])){s=ItemManager.get(o[TWDB.ClothCalc._type2id[t.type]].id);if(isDefined(s)&&isDefined(s.set)){continue}r=TWDB.Calc.getItemBonusForJob(s.item_id,n)}if(i>r){debLog("isBetterItem - ID",e,t,"is seen as better than ID",s.item_id,ItemManager.get(s.item_id),"for job ID",n);return true}}return false},checkSkill:function(){var e;for(e in this.data.skills){if(typeof this.calcdata.skills[e]==="undefined"){return true}if(this.data.skills[e].val!==this.calcdata.skills[e].val){return true}}return false},checkItems:function(){var e;for(e in this.data.items){if(typeof this.calcdata.items[e]==="undefined"){if(this.isBetterItem(this.data.items[e].id)){debLog("checkItems -",this.data.items[e].id,"causes update");return true}}}for(e in this.calcdata.items){if(typeof this.data.items[e]==="undefined"){if(!isDefined(ItemManager.get(e))){console.log("Item ID="+e+" seems to be no more defined...")}return true}}return false},checkCustom:function(){var e,t;for(e in this.data.custom){if(typeof this.calcdata.custom[e]==="undefined"){return true}if(this.calcdata.custom[e].name!==this.data.custom[e].name){return true}for(t in this.data.custom[e].para){if(typeof this.calcdata.custom[e].para[t]==="undefined"){return true}if(this.calcdata.custom[e].para[t]!==this.data.custom[e].para[t]){return true}}}if(typeof this.calcdata.custom[Number(e)+1]!=="undefined"){return true}return false},checkCache:function(){var e=this.checkItems(),t=false,n=this.checkCustom(),r;this.gui.cache.children().remove();if(e||t||n){var i="the Data is outdated, click for Update";if(e){i+=" [Inventory]"}if(t){i+=" [Skill]"}if(n){i+=" [Custom skills]"}r=jQuery('<div title="'+i+'" style="position:absolute;top:0px;right:0px;width:20px;height:20px;background: url('+TWDB.images.iconData+')no-repeat 0px 0px;" />');this.up2date=false}else{r=jQuery('<div title="the Data is up to Date" style="position:absolute;top:0px;right:0px;width:20px;height:20px;background: url('+TWDB.images.iconData+')no-repeat -20px 0px;" /></div>');this.up2date=true}this.gui.cache.append(r);r.click(function(){TWDB.DataManager.loadData(true)})},openWear:function(){var e,t=wman.getById(Inventory.uid);if(TWDB.Settings.get("wear_openmin",false)){if(!isDefined(wman.getById(Wear.uid))){Wear.open();wman.minimize(Wear.uid,true)}}else{if(!isDefined(wman.getById(Wear.uid))){Wear.open()}else{wman.reopen(Wear.uid)}}e=wman.getById(Inventory.uid);if(typeof t==="undefined"&&typeof e!=="undefined"){e.fireEvent(TWE("WINDOW_CLOSE"),e)}},open:function(e,t){var n=this;if(this.ready===false){if(isDefined(e)&&isDefined(t)){this.open_param=[e,t]}return}if(wman.getById(this.uid)){wman.reopen(this.uid);this.openWear();if(isDefined(e)&&isDefined(t)){var r;switch(t){case"job":r=TWDB.Jobs.getJobById(e);r=isDefined(r)?r.name:null;break;case"item":r=e;break;case"default":r=null;break}if(r!==null){n.showTab(e,"Jobs");n.joblist.open(r)}}return}if(typeof this.eventOpen!=="undefined"){TWDB.Eventer.remove("getGameData",this.eventOpen)}var i=0,s;for(s in this.calcdata.jobs){i++;break}if(i===0){this.eventOpen=TWDB.Eventer.set("getGameData",function(){TWDB.DataManager.loadData(true)},1);this.up2date=false;this.getGameData()}else{this.eventOpen=TWDB.Eventer.set("getGameData",function(){n.finishOpening()},1);this.getGameData()}this.openWear();this.jobs.selected=0;this.gui.job.sort=jQuery('<div style="position:absolute;top:10px;left:0px;height:20px;" />').append('<img src="'+TWDB.images.iconName+'" title=" Sort by name " alt=" Sort by name " onclick="javascript:TWDB.ClothCalc.joblist.order(\'name\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconExperience+'" title=" Sort by experience " alt=" Sort by experience " onclick="javascript:TWDB.ClothCalc.joblist.order(\'experience\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconDollar+'" title=" Sort by wages " alt=" Sort by wages " onclick="javascript:TWDB.ClothCalc.joblist.order(\'wages\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconLuck+'" title=" Sort by luck " alt=" Sort by luck " onclick="javascript:TWDB.ClothCalc.joblist.order(\'luck1\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconLaborpoints+'" title=" Sort by workpoints " alt=" Sort by workpoints " onclick="javascript:TWDB.ClothCalc.joblist.order(\'laborpoints\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconMoti+'" title=" Sort by motivation " alt=" Sort by motivation " onclick="javascript:TWDB.ClothCalc.joblist.order(\'motivation\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconDanger+'" title=" Sort by danger " alt=" Sort by danger " onclick="javascript:TWDB.ClothCalc.joblist.order(\'danger\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />');this.gui.job.title=jQuery('<div style="position:absolute;top:37px;left:0px;width:187px;height:19px;font-weight:bold;text-align:center;white-space: nowrap;">Select job here >></div>');this.gui.job.mode=jQuery("<div style=\"position:absolute;top:10px;right:30px;width:20px;height:20px;background:url('"+TWDB.images.jobTime+'\') no-repeat scroll 0 0 transparent;cursor:pointer;display:block;" title=" Job time " />');this.gui.job.search=jQuery("<div style=\"position:absolute;top:35px;right:50px;width:20px;height:20px;background:url('"+TWDB.images.iconSearch+'\') no-repeat scroll 0 0 transparent;cursor:pointer;display:none;" title=" Find this job on the map " />');this.gui.job.checkbox=new west.gui.Checkbox("",this.joblist.all?"":"tw2gui_checkbox_checked",function(){n.joblist.all=!this.isSelected();n.joblist.update()});this.gui.job.checkbox.setTooltip("Hide Jobs you could not do");this.gui.job.checkbox.getMainDiv().css({position:"absolute",top:"35px",right:"30px"});this.gui.job.button=jQuery('<div style="position:absolute;top:35px;right:4px;width:26px;height:20px;background:url(\'/images/window/character/title_editbtn.jpg\') no-repeat scroll 0 0 transparent;cursor:pointer;" title=" Select job here " />');this.gui.job.skills=jQuery('<div style="position:absolute;top:60px;left:1px;width:170px;height:30px;display:block;" />');this.gui.job.mainDiv=jQuery('<div style="position:absolute;top:0px;left:0px;height:100%;width:100%;" />');this.gui.job.mainDiv.append(this.gui.job.sort);this.gui.job.mainDiv.append(this.gui.job.title);this.gui.job.mainDiv.append(this.gui.job.mode);this.gui.job.mainDiv.append(this.gui.job.search);this.gui.job.mainDiv.append(this.gui.job.checkbox.getMainDiv());this.gui.job.mainDiv.append(this.gui.job.button);this.gui.job.mainDiv.append(this.joblist.getMainDiv());this.gui.job.mainDiv.append(this.gui.job.skills);this.gui.job.calc=$('<div title=" Current rewards " style="position:absolute;top:60px;width:100px;right:1px;height:30px;display:block;;font-weight:bold;text-align:center;" />');this.gui.job.mainDiv.append(this.gui.job.calc);this.gui.job.button.click(function(){if(n.joblist.getMainDiv().is(":visible")){n.joblist.close()}else{n.joblist.open()}}.bind(this));this.gui.job.search.click(function(){n.jobSearch()}.bind(this));this.gui.job.searchDiv=jQuery("<div />");if(n.joblist.getMainDiv().is(":visible")){n.joblist.close()}n.joblist.name=null;if(isDefined(e)&&isDefined(t)){var r;switch(t){case"job":r=TWDB.Jobs.getJobById(e);r=isDefined(r)?r.name:null;break;case"item":r=e;break;case"default":r=null;break}if(r!==null){n.joblist.name=r}}this.customs.selected=0;this.gui.custom.title=jQuery('<div style="position:absolute;top:36px;left:0px;width:210px;height:19px;font-weight:bold;text-align:center;">Select job here >></div>');this.gui.custom.settings=jQuery('<div title="settings" style="position:absolute;top:35px;right:30px;width:20px;height:20px;background:url('+TWDB.images.iconSetting+');cursor:pointer;" />');this.gui.custom.settings.click(function(){n.customs.showConfig()});this.gui.custom.button=jQuery('<div style="position:absolute;top:35px;right:4px;width:26px;height:20px;background:url(\'/images/window/character/title_editbtn.jpg\') no-repeat scroll 0 0 transparent;cursor:pointer;" title=" Select job here " />');this.gui.custom.selectbox=new west.gui.Selectbox;this.gui.custom.selectbox.elContent.css("max-height","660px");this.gui.custom.selectbox.setWidth(300).addListener(function(e){n.customs.switchCustomJob(e)});this.gui.custom.skills=jQuery('<div style="position:absolute;top:60px;left:1px;width:252px;height:30px;display:block;" />');this.gui.custom.mainDiv=jQuery('<div style="position:absolute;top:0px;left:0px;height:100%;width:100%;" />').hide();this.gui.custom.mainDiv.append(this.gui.custom.title);this.gui.custom.mainDiv.append(this.gui.custom.settings);this.gui.custom.mainDiv.append(this.gui.custom.button);this.gui.custom.mainDiv.append(this.gui.custom.skills);this.gui.custom.mainDiv.append(this.gui.custom.calc);this.gui.custom.button.click(function(e){n.gui.custom.selectbox.show(e)});this.gui.bag.children().remove();var o=function(e,t){n.showTab(e,t)};this.gui.window=wman.open(this.uid,null,"noreload").setMiniTitle("TWDB Cloth Calc").setTitle("tw-db.info Cloth Calc").addTab("Job","Jobs",o).addTab("Custom skills","Custom",o).appendToContentPane(this.gui.job.mainDiv).appendToContentPane(this.gui.custom.mainDiv).appendToContentPane(this.gui.cache).appendToContentPane(this.gui.bag).appendToContentPane(this.gui.copyright);this.gui.window.showLoader();var u=$('<div title="save Position" style="width:20px;height:20px;position:absolute;left:0px;top:0px;background:url(\''+TWDB.images.iconSave+"') no-repeat scroll 0px -20px transparent;cursor:pointer;display:block;\" />").hover(function(){$(this).css("background-position","0px 0px")},function(){$(this).css("background-position","0px -20px")}).click(function(){TWDB.Settings.set("clothPos","custom");var e=n.gui.window.saveAppearance();TWDB.Settings.set("clothPosition",{x:e.x,y:e.y});(new UserMessage("saved successful",UserMessage.TYPE_SUCCESS)).show()});$(this.gui.window.divMain).find(".tw2gui_window_buttons").append(u);$(this.gui.window.divMain).children(".tw2gui_window_tabbar").css("right","22px");var a=this.gui.window.saveAppearance();switch(TWDB.Settings.get("clothPos","left")){case"left":a.x=Wear.window.divMain.offsetLeft-295;break;case"custom":a=TWDB.Settings.get("clothPosition",{x:0,y:0});break;case"default":a.x=Wear.window.divMain.offsetLeft+Wear.window.divMain.offsetWidth-15;break}if(a.x<-20){a.x=0}else if(a.x>$("body").width()-150){a.x=$("body").width()-150}this.gui.window.restoreAppearance({h:410,w:310,x:a.x,y:a.y});return},finishOpening:function(){this.jobs.mode(2);this.joblist.init(this);this.customs.createSelectbox();if(typeof this.gui.window!=="undefined"){this.checkCache();delete this.eventOpen;var e=function(e){TWDB.ClothCalc.jobs.update()};EventHandler.unlisten("wear_changed",e);EventHandler.listen("wear_changed",e);this.gui.window.hideLoader()}},showTab:function(e,t){this.gui.window.activateTab(t);this.gui.window.showLoader();this.gui.bag.children().remove();switch(t){case"Jobs":this.gui.custom.mainDiv.hide();if(this.jobs.selected!==0){this.jobs.switchJob(this.jobs.selected)}this.gui.job.mainDiv.show();break;case"Custom":this.gui.job.mainDiv.hide();if(this.customs.selected!==0){this.customs.switchCustomJob(this.customs.selected)}this.gui.custom.mainDiv.show();break}this.gui.window.hideLoader()},getGameData:function(e){var t=this;if(typeof e==="undefined"){this.getState={skill:false,items:false,jobs:false};TWDB.Eventer.set("getSkill",function(){t.getGameData("skill")},1);TWDB.Eventer.set("getItems",function(){t.getGameData("items")},1);TWDB.Eventer.set("getJobs",function(){t.getGameData("jobs")},1);TWDB.DataManager.loadData();this.getSkill();this.getJobs();this.getItems()}else{this.getState[e]=true;var n=true,r;for(r in this.getState){if(!this.getState[r]){n=false;break}}if(n){delete this.getState;TWDB.Eventer.trigger("getGameData")}}},getSkill:function(e){if(typeof e==="undefined"){var t=this;setTimeout(function(){t.getSkill(CharacterSkills.skills)},10);return}else{this.data.skills={};var n,r;for(n in e){r=TWDB.ClothCalc._skill2id[n];this.data.skills[r]={id:r,val:e[n].points}}TWDB.Eventer.trigger("getSkill")}},getItems:function(e){if(typeof e==="undefined"){var t=this;jQuery.post("game.php?window=inventory",{},function(e){t.getItems(e)},"json");return}else{this.data.items={};var n,r;for(n=0;n<e.wear.length;n++){r=ItemManager.get(e.wear[n]);if(!this.isItemUsable(r.item_id)){continue}this.data.items[r.item_id]={id:r.item_id}}for(n in Bag.items_by_id){r=Bag.items_by_id[n].obj;if(!this.isItemUsable(r.item_id)){continue}this.data.items[r.item_id]={id:r.item_id}}TWDB.Eventer.trigger("getItems")}},getJobs:function(e){if(typeof e==="undefined"){var t=this;jQuery.post("game.php?window=work&mode=index",{},function(e){t.getJobs(e)},"json");return}else{this.data.jobs=e;TWDB.Eventer.trigger("getJobs")}},isItemUsable:function(e,t){var n=ItemManager.get(e);if(typeof n==="undefined"){return false}var r=false;if(!this.itemHasBonus(n)){return false}if(n.characterClass!==null&&n.characterClass!==Character.charClass){return false}if(n.characterSex!==null&&n.characterSex!==Character.charSex){return false}if(n.level!==null&&n.level>Character.level+Character.itemLevelRequirementDecrease.all+(typeof Character.itemLevelRequirementDecrease[n.type]!=="undefined"?Character.itemLevelRequirementDecrease[n.type]:0)){return isDefined(t)&&t}return true},itemHasBonus:function(e){if(e.type==="left_arm"||e.type==="right_arm"){return true}if(typeof e.set!=="undefined"&&e.set!==null){return true}if(typeof e.speed!=="undefined"&&e.speed!==null){return true}if(typeof e.bonus==="undefined"){return false}var t;if(typeof e.bonus.skills!=="undefined"){for(t in e.bonus.skills){if(!jQuery.isFunction(e.bonus.skills[t])){return true}}}if(typeof e.bonus.attributes!=="undefined"){for(t in e.bonus.attributes){if(!jQuery.isFunction(e.bonus.attributes[t])){return true}}}if(typeof e.bonus.item!=="undefined"){for(t in e.bonus.item){if(!jQuery.isFunction(e.bonus.item[t])){return true}}}if(typeof e.bonus.fortbattle!=="undefined"){for(t in e.bonus.fortbattle){if(e.bonus.fortbattle[t]>0){return true}}}if(typeof e.bonus.fortbattlesector!=="undefined"){for(t in e.bonus.fortbattlesector){if(e.bonus.fortbattle[t]>0){return true}}}return false},handleTWDBData:function(){var e=TWDB.DataManager.getData("twdb");var t=this;this.calcdata.items=jQuery.extend(true,{},t.data.items);this.calcdata.skills=jQuery.extend(true,{},t.data.skills);this.calcdata.time=e.time;this.calcdata.jobs=e.jobs;this.calcdata.custom=e.custom;this.calcdata.loaded=true;this.calcdata.used={};try{this.jobs.init()}catch(n){TWDB.Error.report(n,"GENERICERROR#; handle Jobs")}try{this.joblist.reset()}catch(n){TWDB.Error.report(n,"GENERICERROR#; handle Jobslist")}try{this.customs.init()}catch(n){TWDB.Error.report(n,"GENERICERROR#; handle Customs")}try{this.setUsedItems()}catch(n){TWDB.Error.report(n,"GENERICERROR#; setUsedItems")}TWDB.Cache.save("calcdata",this.calcdata);this.finishOpening()},jobs:{selected:0,base:1,basetime:1,sort:{list:[],type:"name",order:1},setParent:function(e){this.parent=e},init:function(){var e=[],t=0,n=0,r,i,s;while(true){t++;i=JobList.getJobById(t);if(!i){n++;if(n>5){break}continue}n=0;e[i.shortname]=i.id}for(r in this.parent.calcdata.jobs){i=this.parent.calcdata.jobs[r];if(typeof e[i.short_name]==="undefined"){if(i.short_name==="construction"){i.name="Construction";i.skills={};i.gameid=0;i.laborpoints.current=0;i.duration=7200*Number(this.parent.data.jobs.workspeed);i.energy=24}else{i.name="!!".job.short_name;i.skills={};i.gameid=0;i.laborpoints.current=0;i.duration=0;i.energy=0}continue}s=JobList.getJobById(e[i.short_name]);i.name=s.name;i.skills=s.skills;i.gameid=s.id;i.difficulty=s.malus;i.duration=0;i.energy=s.energy;i.laborpoints.current=0}},update:function(){if(isDefined(this.parent.calcdata.jobs[this.selected])){var e=this.calcJob(this.selected);var t=e.name.substring(0,18)+" ["+e.laborpoints.current+"/"+e.laborpoints.sum+"]";this.parent.gui.job.title.html(t);this.parent.jobs.showCur()}},showCur:function(){if(isDefined(this.selected)){var e=this.parent.calcdata.jobs[this.selected];if(isDefined(e)){var t="";switch(this.parent.joblist.sort.type){case"luck1":t+='<img style="vertical-align: bottom;" src="'+TWDB.images.iconLuck+'"/> ';t+=" $"+e.values.cur_luck1+"-"+"$"+e.values.cur_luck2;break;case"laborpoints":t+='<img style="vertical-align: bottom;" src="'+TWDB.images.iconLaborpoints+'"/> ';t+=e.laborpoints.current;break;case"experience":t+='<img style="vertical-align: bottom;" src="'+TWDB.images.iconExperience+'"/> ';t+=e.values.cur_experience+"exp";break;case"wages":t+='<img style="vertical-align: bottom;" src="'+TWDB.images.iconDollar+'"/> ';t+=" $"+e.values.cur_wages;break;case"danger":t+='<img style="vertical-align: bottom;" src="'+TWDB.images.iconDanger+'"/> ';t+=e.values.cur_danger+"%";break;case"motivation":t+='<img style="vertical-align: bottom;" src="'+TWDB.images.iconMoti+'"/> ';t+=e.values.resmotivation*100+" ("+Math.round(e.values.motivation*100)+")%";break}this.parent.gui.job.calc.html(t)}}},switchJob:function(e){if(typeof this.parent.calcdata.jobs[e]==="undefined"||typeof this.parent.calcdata.jobs[e].cloth==="undefined"){return}var t=this.parent,n=t.calcdata.jobs[e];if(n.gameid!==0){TWDB.Map.setMinimapJob(n.name);t.gui.job.search.show()}else{t.gui.job.search.hide()}this.selected=e;var r=n.name.substring(0,18)+" ["+n.laborpoints.current+"/"+n.laborpoints.sum+"]";t.gui.job.title.html(r);t.bag.showItems(n.cloth,"jobs");t.gui.job.skills.children().remove();var i,s,o;for(i in n.skills){for(s=0;s<n.skills[i];s++){o=jQuery('<div style="float:left;width;30px;height:30px;" />');t.gui.job.skills.append(o.append(t.getSkillImg(i,30)))}}this.showCur()},mode:function(e){var t=this,n=2,r=t.parent.data.jobs.jobs,i;for(i in t.parent.data.jobs.jobs){n=Math.min(r[i].durations.length-1,n)}if(n<e){return t.mode(0)}try{t.parent.gui.job.mode.unbind("click")}catch(s){}switch(e){case 1:t.base=1;t.basetime=600;t.parent.gui.job.mode.css("background-position","-20px 0px").click(function(){t.mode(2);t.parent.joblist.update()});break;case 2:t.base=2;t.basetime=3600;t.parent.gui.job.mode.css("background-position","-40px 0px").click(function(){t.mode(0);t.parent.joblist.update()});break;default:t.base=0;t.basetime=15;t.parent.gui.job.mode.css("background-position","0px 0px").click(function(){t.mode(1);t.parent.joblist.update()});break}},_calcStepFormula:function(e,t,n,r,i,s,o,u,a){var f=Math.ceil((i+1)/5),l=Math.min(Math.floor(r/f),15),c=Math.ceil(o/25)*.25;return r<5*f||r<=i?Math[e]({0:1,1:2,2:3,3:4,4:5,5:6.25}[a?0:l]*s*c*u):Math[t](n(r-i,l)*s*c*u)},calcWage:function(e,t,n,r,i){return this._calcStepFormula("ceil","round",function(e){return 6.25*Math.pow(e,.05)},e,t,n,r,i)},calcExp:function(e,t,n,r,i){return this._calcStepFormula("ceil","ceil",function(e){return 6.25},e,t,n,r,i)},calcLuck:function(e,t,n,r,i){return this._calcStepFormula("floor","floor",function(e){return 6.25*Math.pow(e,.2)},e,t,(.9*n+5)/1.25,100,i)},calcProductRate:function(e,t,n,r,i){return this._calcStepFormula("round","round",function(e,t){return t<15?6.25:9.375},e,t,n,100,i)},calcDanger:function(e,t,n,r,i){return this._calcStepFormula("floor","floor",function(e){return Math.pow(e,-.2)},e,t,n,100,i,true)},addPremium:function(e){var t=Number(Premium.hasBonus("character")),n=Number(Premium.hasBonus("money")),r=1,i=1,s=1;if(n){r*=1.5}if(Character.charClass==="worker"){i=t?1.1:1.05}if(Character.charClass==="adventurer"){s=t?.8:.9}e.values.cur_wages=Math.round(e.values.cur_wages*r);e.values.cur_experience=Math.round(e.values.cur_experience*i);e.values.cur_luck2=Math.floor(e.values.cur_luck2*r);e.values.cur_danger=Math.round(e.values.cur_danger*s);e.values.wages=Math.round(e.values.wages*r);e.values.experience=Math.round(e.values.experience*i);e.values.luck2=Math.floor(e.values.luck2*r);e.values.danger=Math.round(e.values.danger*s);return e},calcJob:function(e){var t=this.parent.calcdata.jobs[e],n=t.difficulty,r=JobList.getJobById(t.gameid),i;t.values={};t.sp=0;t.max_sp=0;t.laborpoints.skills=0;for(i in t.skills){t.laborpoints.skills+=Number(t.skills[i])*Number(CharacterSkills.skills[i].points)}t.laborpoints.sum=t.laborpoints.cloth;t.laborpoints.sum+=t.laborpoints.skills;t.laborpoints.sum-=t.difficulty+1;if(isDefined(r)){t.laborpoints.current=r.calcJobPoints()-(r.malus+1);t.sp=r.calcJobPoints();t.max_sp=t.laborpoints.skills+t.laborpoints.cloth}else{t.laborpoints.current=0}if(t.gameid!==0){t.values.motivation=this.parent.data.jobs.jobs[t.gameid].motivation;t.values.resmotivation=Math.ceil(this.parent.data.jobs.jobs[t.gameid].motivation*4)/4}else{t.values.motivation=0;t.values.resmotivation=0}t.values.name=t.name;t.values.laborpoints=Number(t.laborpoints.sum);t.values.duration=Number(this.basetime);var s=1;switch(this.base){case 0:s=.1;break;case 1:s=.47;break;default:break}var o=t.values.motivation*100;t.values.cur_wages=this.calcWage(t.sp,n,t.wages,o,s);t.values.cur_experience=this.calcExp(t.sp,n,t.experience,o,s);t.values.cur_luck1=this.calcLuck(t.sp,n,t.luck,o,1);t.values.cur_luck2=this.calcLuck(t.sp,n,t.luck,o,3);t.values.cur_danger=this.calcDanger(t.sp,n,t.danger,o,1);t.values.wages=this.calcWage(t.max_sp,n,t.wages,t.values.resmotivation*100,s);t.values.experience=this.calcExp(t.max_sp,n,t.experience,t.values.resmotivation*100,s);t.values.luck1=this.calcLuck(t.max_sp,n,t.luck,t.values.resmotivation*100,1);t.values.luck2=this.calcLuck(t.max_sp,n,t.luck,t.values.resmotivation*100,3);t.values.danger=this.calcDanger(t.max_sp,n,t.danger,t.values.resmotivation*100,1);return this.addPremium(t)},getJobPopup:function(e){var t=this.parent.calcdata.jobs[e].values,n;t.laborpoints=this.parent.calcdata.jobs[e].laborpoints.sum;n="<table>"+'<tr><td colspan="4" style="font-weight:bold;text-align:center;font-size:11px;">'+this.parent.calcdata.jobs[e].name+"</td></tr>"+'<tr><td><img src="'+TWDB.images.iconExperience+'" title=" Experience " height="15px" width="15px" /></td><td style="font-size:10px;vertical-align:bottom;">'+t.experience+"</td>"+'<td><img src="'+TWDB.images.iconDollar+'" title=" Wages " height="15px" width="15px" /></td><td style="font-size:10px;vertical-align:bottom;">'+t.wages+"</td></tr>"+'<tr><td><img src="'+TWDB.images.iconLuck+'" title=" Luck " height="15px" width="15px" /></td><td style="font-size:10px;vertical-align:bottom;">'+t.luck1+"-"+t.luck2+"</td>"+'<td><img src="'+TWDB.images.iconDanger+'" title=" Danger " height="15px" width="15px" /></td><td style="font-size:10px;vertical-align:bottom;">'+t.danger+"</td></tr>"+'<tr><td><img src="'+TWDB.images.iconLaborpoints+'" title=" ?laborpoints " height="15px" width="15px" /></td><td style="font-size:10px;vertical-align:bottom;">'+t.laborpoints+"</td>"+'<td><img src="'+TWDB.images.iconClock+'" title=" Duration " height="15px" width="15px" /></td><td style="font-size:10px;vertical-align:bottom;">'+t.duration+"</td></tr>"+'<tr><td><img src="'+TWDB.images.iconMoti+'" title=" Motivation "  height="15px" width="15px" /></td><td style="font-size:10px;vertical-align:bottom;">'+t.resmotivation*100+" ("+Math.round(t.motivation*100)+")%</td><td></td><td></td></tr>"+"</table>";return n}},joblist:{ready:false,gui:{},elements:[],focused:0,sort:{type:"name",order:1},all:false,name:null,reset:function(){this.ready=false;delete this.elements;this.elements=[];this.getMainDiv().children().remove();this.getMainDiv().append('<style type="text/css">.TWDB_hide{display:none;}.TWDB_filter{display:none;}</style>');this.init(this.parent)},init:function(e){if(this.ready){return}this.ready=true;this.parent=e;if(!this.gui.main){this.gui.main=this.getMainDiv()}this.gui.result=jQuery('<div class="tw2gui_jobsearchbar_allresults" style="width:285px;" />');this.gui.input=(new west.gui.Textfield).maxlength(32).setClass4Input("tw2gui_jobsearch_string").setWidth(265);this.gui.button=jQuery('<div class="tw2gui_jobsearch_showall" style="display:block;cursor:pointer;"></div>');this.gui.scrollpane=new west.gui.Scrollpane;jQuery(this.gui.scrollpane.getMainDiv()).css({width:"285px",height:"250px"});var t,n,r,i;for(t in e.calcdata.jobs){n=e.calcdata.jobs[t];r=jQuery("<p>"+n.name+"</p>");i={};i.dom=r;i.id=t;i.str="§"+n.name.toUpperCase()+"§";if(n.gameid!==0){var s=JobList.getJobById(n.gameid),o;for(o in s.yields){if(isNaN(o)){continue}i.str+=ItemManager.get(o).name.toUpperCase()+"§"}}this.elements.push(i)}this.gui.main.append(jQuery('<div style="position:relative;top:0;left:0;width:305px" />').append(this.gui.input.getMainDiv()).append(this.gui.button)).append(this.gui.result);this.update();if(this.name){this.open(this.name)}},open:function(e){var t=this;this.gui.result.show();jQuery(this.gui.input.getMainDiv()).unbind().keyup(function(e){t.keyHandler(e)});jQuery(this.gui.input.getField()).unbind().focus(function(){t.gui.result.show()});delete this.gui.scrollpane;this.gui.scrollpane=new west.gui.Scrollpane;jQuery(this.gui.scrollpane.getMainDiv()).css({width:"285px",height:"250px"});var n=true;jQuery.each(this.elements,function(e,r){r.dom.unbind();t.updateJob(e);if(n&&r.dom.is(":visible")){this.focused=e;r.dom.addClass("focused");n=false}else{r.dom.removeClass("focused")}r.dom.addMousePopup(TWDB.ClothCalc.jobs.getJobPopup(r.id));r.dom.click(function(e){return function(){t.close();TWDB.ClothCalc.jobs.switchJob(e)}}(r.id));t.gui.scrollpane.appendContent(r.dom)});this.gui.result.children().remove();this.gui.result.append(this.gui.scrollpane.getMainDiv());this.gui.button.click(function(){if(t.gui.result.is(":visible")){t.gui.result.hide()}else{jQuery(t.gui.input.getField()).focus()}});this.gui.main.show();if(isDefined(e)){jQuery(this.gui.input.getField()).attr("value",e);this.search(e,true)}},search:function(e,t){var n=new RegExp(isDefined(t)?"§"+e.toUpperCase()+"§":e.toUpperCase(),"i");var r=true;var i=this;var s=[];jQuery.each(this.elements,function(e,t){t.dom.removeClass("focused");if(n.test(t.str)){t.dom.removeClass("TWDB_filter");if(t.dom.is(":visible")){s.push(t.dom);if(r){i.focused=e;t.dom.addClass("focused");r=false}}}else{t.dom.addClass("TWDB_filter")}});if(s.length===1){s[0].click()}},keyHandler:function(e){var t=e.keyCode||e.which,n;if(t===38||t===40){if(t===38){this.elements[this.focused].dom.removeClass("focused");for(n=0;n<this.elements.length;n++){this.focused--;if(this.focused<0){this.focused=this.elements.length-1}if(this.elements[this.focused].dom.is(":visible")){this.elements[this.focused].dom.addClass("focused");break}}}else{this.elements[this.focused].dom.removeClass("focused");for(n=0;n<this.elements.length;n++){this.focused++;if(this.focused>=this.elements.length){this.focused=0}if(this.elements[this.focused].dom.is(":visible")){this.elements[this.focused].dom.addClass("focused");break}}}var r=this.elements[this.focused].dom.offset().top,i=jQuery(this.gui.scrollpane.clipPane).offset().top,s;if(r-i>180||i-r>0){s=(r-i-90)/16;this.gui.scrollpane.scrollTo(0,s)}}else if(t===13){this.elements[this.focused].dom.click()}else{this.search(this.gui.input.getValue())}},order:function(e){function t(t,n){var r=TWDB.ClothCalc.calcdata.jobs[t.id].values[e];var s=TWDB.ClothCalc.calcdata.jobs[n.id].values[e];return r>s?i:-i}function n(t,n){var r=TWDB.ClothCalc.calcdata.jobs[t.id].values[e];var s=TWDB.ClothCalc.calcdata.jobs[n.id].values[e];return r*1>s*1?i:-i}var r=true;if(e){if(e===this.sort.type){this.sort.order*=-1}else{r=false;if(e==="danger"||e==="name"){this.sort.order=1}else{this.sort.order=-1}this.sort.type=e}}var i=this.sort.order,e=this.sort.type,s=this,o=true;if(e==="name"){this.elements.sort(t)}else{this.elements.sort(n)}jQuery.each(this.elements,function(e,t){if(!r){s.updateJob(e)}if(o&&t.dom.is(":visible")){this.focused=e;t.dom.addClass("focused");o=false}else{t.dom.removeClass("focused")}s.gui.scrollpane.appendContent(t.dom)});this.parent.jobs.showCur()},updateJob:function(e){var t=this.elements[e],n=TWDB.ClothCalc.jobs.calcJob(t.id),r=n.name;t.dom.removeClass("TWDB_hide");r+=" ["+n.laborpoints.current+"/"+n.laborpoints.sum+"] ";switch(this.sort.type){case"luck1":r+=" $"+n.values.luck1+"-"+"$"+n.values.luck2;break;case"laborpoints":break;case"experience":r+=n.values.experience+"exp";break;case"wages":r+="$"+n.values.wages;break;case"danger":r+=n.values.danger+"%";break;case"duration":r+=n.values.duration+" sec";break;case"motivation":r+=n.values.resmotivation*100+" ("+Math.round(n.values.motivation*100)+")%";break}t.dom.html(r);if(n.laborpoints.current<0){if(n.laborpoints.sum<0){if(JobList.getJobById(t.id).level<=Character.level){t.dom.css("color","blue")}else{t.dom.css("color","red");if(!this.all){t.dom.addClass("TWDB_hide")}}}else{t.dom.css("color","orange")}}else{t.dom.css("color","#333")}return n},update:function(){var e=this;jQuery.each(this.elements,function(t){e.updateJob(t)});this.order()},getMainDiv:function(){if(!this.gui.main){this.gui.main=jQuery('<div style="position:absolute;left: 255px; top: 30px; display: none;" />').append('<style type="text/css">.TWDB_hide{display:none;}.TWDB_filter{display:none;}</style>')}return this.gui.main},close:function(){this.gui.main.hide()}},customs:{selected:0,setParent:function(e){this.parent=e},init:function(){var e,t;for(e in this.parent.calcdata.custom){try{t=this.parent.calcdata.custom[e];switch(t.type){case"speed":t.skills=["ride"];if(!t.laborpoints){var n=t.cloth&&t.cloth[1]&&t.cloth[1].other&&t.cloth[1].other[1]||0,r=t.boni&&t.boni.other&&t.boni.other[1]||0;r-=n;n+=t.boni&&t.boni.skill&&t.boni.skill[2]||0;n+=t.boni&&t.boni.skill&&t.boni.skill[10]||0;n+=CharacterSkills.skills.ride.points;t.laborpoints=Math.round((100+n)*(1+r/100))}t.laborpoints+="%";break;case"regen":t.skills=["health"];t.laborpoints="";break;case"fort":var i,s={},o=Character.charClass==="soldier"?Premium.hasBonus("character")?1.5:1.25:1,u=Character.charClass=="worker"?Premium.hasBonus("character")?1.4:1.2:1,a=(Number(t.boni.other[11])||0)+(Number(t.boni.other[17])||0),f=(Number(t.boni.other[12])||0)+(Number(t.boni.other[18])||0);if(t.para.type===0){s.aim=CharacterSkills.skills.aim.points+(typeof t.boni.skill[3]!=="undefined"?t.boni.skill[3]:0)+(typeof t.boni.skill[15]!=="undefined"?t.boni.skill[15]:0);s.hide=CharacterSkills.skills.hide.points+(typeof t.boni.skill[2]!=="undefined"?t.boni.skill[2]:0)+(typeof t.boni.skill[13]!=="undefined"?t.boni.skill[13]:0);s.dodge=CharacterSkills.skills.dodge.points+(typeof t.boni.skill[2]!=="undefined"?t.boni.skill[2]:0)+(typeof t.boni.skill[12]!=="undefined"?t.boni.skill[12]:0);s.leadership=CharacterSkills.skills.leadership.points+(typeof t.boni.skill[4]!=="undefined"?t.boni.skill[4]:0)+(typeof t.boni.skill[20]!=="undefined"?t.boni.skill[20]:0);s.health=CharacterSkills.skills.health.points+(typeof t.boni.skill[1]!=="undefined"?t.boni.skill[1]:0)+(typeof t.boni.skill[9]!=="undefined"?t.boni.skill[9]:0);i=100+(Character.level-1)*Character.lifePointPerHealthSkill+s.health*(Character.lifePointPerHealthSkill+Character.lifePointPerHealthSkillBonus)+" | ";i+=Number((25+Math.pow(s.leadership*o,.5)+Math.pow(s.aim,.5)+Math.pow(s.hide,.6)+a)*u).round(2)+" | ";i+=Number((10+Math.pow(s.leadership*o,.5)+Math.pow(s.dodge,.5)+Math.pow(s.hide,.6)+f)*u).round(2)}else{s.aim=CharacterSkills.skills.aim.points+(typeof t.boni.skill[3]!=="undefined"?t.boni.skill[3]:0)+(typeof t.boni.skill[15]!=="undefined"?t.boni.skill[15]:0);s.pitfall=CharacterSkills.skills.pitfall.points+(typeof t.boni.skill[3]!=="undefined"?t.boni.skill[3]:0)+(typeof t.boni.skill[17]!=="undefined"?t.boni.skill[17]:0);s.dodge=CharacterSkills.skills.dodge.points+(typeof t.boni.skill[2]!=="undefined"?t.boni.skill[2]:0)+(typeof t.boni.skill[12]!=="undefined"?t.boni.skill[12]:0);s.leadership=CharacterSkills.skills.leadership.points+(typeof t.boni.skill[4]!=="undefined"?t.boni.skill[4]:0)+(typeof t.boni.skill[20]!=="undefined"?t.boni.skill[20]:0);s.health=CharacterSkills.skills.health.points+(typeof t.boni.skill[1]!=="undefined"?t.boni.skill[1]:0)+(typeof t.boni.skill[9]!=="undefined"?t.boni.skill[9]:0);i=100+(Character.level-1)*Character.lifePointPerHealthSkill+s.health*(Character.lifePointPerHealthSkill+Character.lifePointPerHealthSkillBonus)+" | ";i+=Number((25+Math.pow(s.leadership*o,.5)+Math.pow(s.aim,.5)+Math.pow(s.pitfall,.6)+a)*u).round(2)+" | ";i+=Number((10+Math.pow(s.leadership*o,.5)+Math.pow(s.dodge,.5)+Math.pow(s.pitfall,.6)+f)*u).round(2)}t.skills=["health","attacker","defender"];t.laborpoints=i;break;case"duel":t.skills=[];var i=0,l,c;for(l in t.para){c=Math.floor(l/5);if(typeof t.boni.skill[l]!=="undefined"){i+=t.boni.skill[l]}if(typeof t.boni.skill[c]!=="undefined"){i+=t.boni.skill[c]}if(typeof TWDB.ClothCalc._id2skill[l]!=="undefined"){t.skills.push(TWDB.ClothCalc._id2skill[l]);if(typeof CharacterSkills.skills[TWDB.ClothCalc._id2skill[l]]!=="undefined"){i+=CharacterSkills.skills[TWDB.ClothCalc._id2skill[l]].points}else if(typeof CharacterSkills.attributes[TWDB.ClothCalc._id2skill[l]]!=="undefined"){i+=CharacterSkills.attributes[TWDB.ClothCalc._id2skill[l]].points}}}t.laborpoints=i;break;case"custom":t.skills=[];var i=0,l,c;for(l in t.para){c=Math.floor(l/5);if(typeof t.boni.skill[l]!=="undefined"){i+=t.boni.skill[l]}if(typeof t.boni.skill[c]!=="undefined"){i+=t.boni.skill[c]}if(typeof TWDB.ClothCalc._id2skill[l]!=="undefined"){t.skills.push(TWDB.ClothCalc._id2skill[l]);if(typeof CharacterSkills.skills[TWDB.ClothCalc._id2skill[l]]!=="undefined"){i+=CharacterSkills.skills[TWDB.ClothCalc._id2skill[l]].points}else if(typeof CharacterSkills.attributes[TWDB.ClothCalc._id2skill[l]]!=="undefined"){i+=CharacterSkills.attributes[TWDB.ClothCalc._id2skill[l]].points}}}t.laborpoints=i;break;default:break}}catch(h){TWDB.Error.report(h,"GENERICERROR#; handle Customs")}}},calc:function(){var e=this.parent.calcdata.custom[this.selected];return isDefined(e)&&e.type==="fort"?"0|0|0":""},createSelectbox:function(){if(!this.parent.gui.custom.selectbox){return}var e,t;this.parent.gui.custom.selectbox.elContent.empty();this.parent.gui.custom.selectbox.value=null;this.parent.gui.custom.selectbox.items=[];for(e in this.parent.calcdata.custom){t=this.parent.calcdata.custom[e].name+" ["+this.parent.calcdata.custom[e].laborpoints+"]";this.parent.gui.custom.selectbox.addItem(e,t)}this.switchCustomJob(this.selected)},switchCustomJob:function(e){if(isDefined(this.parent.calcdata.custom[e])&&isDefined(this.parent.calcdata.custom[e].cloth)){this.parent.customs.selected=e;var t=" ["+this.parent.calcdata.custom[e].laborpoints+"]";t=this.parent.calcdata.custom[e].name.substring(0,35-t.length)+t;this.parent.gui.custom.title.html(t);this.parent.bag.showItems(this.parent.calcdata.custom[e].cloth,"custom");this.showSkill()}},showSkill:function(){this.parent.gui.custom.skills.children().remove();if(!isDefined(this.parent.calcdata.custom[this.parent.customs.selected])){return}if(this.parent.calcdata.custom[this.parent.customs.selected].type=="fort"){return}var e=this.calc();var t=String(e).split("|");for(var n=0;n<this.parent.calcdata.custom[this.selected].skills.length;n++){var r=jQuery('<div style="float:left;width:30px;height:30px;" />');r.append(this.parent.getSkillImg(this.parent.calcdata.custom[this.selected].skills[n],30));this.parent.gui.custom.skills.append(r);if(this.parent.calcdata.custom[this.parent.customs.selected].type=="fort"&&typeof t[n]!=="undefined"){var i=jQuery('<div style="float:left;height:25px;padding:5px 10px 0px 5px ;font-weight:bold;">'+t[n]+"</div>");this.parent.gui.custom.skills.append(i)}}if(this.parent.calcdata.custom[this.parent.customs.selected].type!=="fort"){var i=jQuery('<div style="float:left;height:25px;padding:5px 0px 0px 5px ;font-weight:bold;">'+e+"</div>");this.parent.gui.custom.skills.append(i)}},showConfig:function(){var e=this;var t=jQuery('<div title="Edit" style="display:inline-block;vertical-align:top;height:16px;width:16px;cursor:pointer;background:url(\''+Game.cdnURL+"/images/window/messages/head-icons.png') repeat scroll 0 16px transparent;\" />");var n=jQuery('<div title="delete" style="display:inline-block;vertical-align:top;height:16px;width:16px;cursor:pointer;background:url(\''+Game.cdnURL+"/images/icons/delete.png') repeat scroll 0px 0px transparent;\" />");var r=jQuery('<div title="add" style="display:block;margin-top:2px;vertical-align:top;height:20px;width:25px;cursor:pointer;background:url(\''+Game.cdnURL+"/images/window/messages/icons.png') repeat scroll 72px -5px transparent;\" />");var i=jQuery("<div />");for(var s in this.parent.data.custom){var o=this.parent.data.custom[s];var u=jQuery('<div style="display:inline-block;vertical-align:top;height:16px;width:300px;overflow:hidden;" />').html(o.name);var a=t.clone(false);var f=n.clone(false);var l=jQuery('<div style="display:block;height:18px;padding: 3px 0px 0px 0px;border-bottom: 1px solid #666" />').append(u).append(a).append(f);i.append(l);var c=function(t){return function(){e.editConfig(t)}}(s);a.click(c);var c=function(t){return function(){e.deleteConfig(t)}}(s);f.click(c)}var h=0;for(var s in this.parent.data.custom){h++}if(h<15){i.append(r);r.click(function(){e.addConfig()})}this.parent.gui.custom.config=new west.gui.Dialog("Custom skills",i);this.parent.gui.custom.config.addButton("ok",function(){e.parent.checkCache()});this.parent.gui.custom.config.show()},addConfig:function(){var e=0;for(var t in this.parent.data.custom){e++}if(e>=15){(new UserMessage("too much entries, only ten are allowed",UserMessage.TYPE_ERROR)).show()}else{e++;this.editConfig(e)}},htmlUnEscape:function(e){return String(e).replace(/&amp;/g,"&").replace(/&quot/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")},htmlEscape:function(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},editConfig:function(e,t){if(typeof t=="undefined"){var n=this;var r="";var i="";var s="add - ";if(typeof this.parent.data.custom[e]!=="undefined"){s="Edit - ";var r=this.parent.data.custom[e].name;var i=JSON.stringify({type:this.parent.data.custom[e].type,para:this.parent.data.custom[e].para})}this.tmp={name:r,code:i};this.parent.gui.custom.name=(new west.gui.Textfield("twdb_cc_custom_name")).setSize(30).setValue(this.htmlUnEscape(r));this.parent.gui.custom.code=(new west.gui.Textfield("twdb_cc_custom_code")).setSize(30).setValue(i);var o=jQuery('<table width="400px" />');o.append(jQuery("<tr />").append('<td style="vertical-align:middle">Name:</td>').append(jQuery("<td />").append(this.parent.gui.custom.name.getMainDiv())));o.append(jQuery("<tr />").append('<td style="vertical-align:middle">code:</td>').append(jQuery("<td />").append(this.parent.gui.custom.code.getMainDiv())));o.append('<tr><td colspan="2">please go to tw-db.info an get the code snippets to inserts here from there <a href="https://tw-db.info/?strana=calc" target="_blank">tw-db.info Calculator</a></td></tr>');var o=new west.gui.Dialog(s+"Custom skills",o);o.addButton("ok",function(){return n.editConfig(e,true)});o.addButton("cancel");o.show()}else{var u=function(e){(new UserMessage("the inserts you have done are incorrect: "+e,UserMessage.TYPE_ERROR)).show();return false};if(this.parent.gui.custom.name.getValue()==""){return u("empty Name")}if(this.parent.gui.custom.code.getValue()==""){return u("empty code [1]")}if(this.parent.gui.custom.name.getValue()==this.tmp.name&&this.parent.gui.custom.code.getValue()==this.tmp.code){return true}try{var i=jQuery.parseJSON(this.parent.gui.custom.code.getValue())}catch(a){return u("wrong code [2]")}if(typeof i.type=="undefined"||typeof i.para=="undefined"){return u("wrong code [3]")}var f=0;for(var l in i.para){f++}switch(i.type){case"speed":case"regen":if(f!==0){return u("wrong code [4]")}break;case"fort":if(typeof i.para.type=="undefined"||typeof i.para.att=="undefined"||typeof i.para.def=="undefined"||typeof i.para.health=="undefined"){return u("wrong code [5]")}if(i.para.type!==1&&i.para.type!==0){return u("wrong code [6]")}if(!jQuery.isNumeric(i.para.att)||i.para.att<0){return u("wrong code [7]")}if(!jQuery.isNumeric(i.para.def)||i.para.def<0){return u("wrong code [8]")}if(!jQuery.isNumeric(i.para.health)||i.para.health<0){return u("wrong code [9]")}break;case"duel":case"custom":if(f<=0){return u("wrong code [10]")}break;default:return u("wrong code [11]")}delete this.tmp;this.parent.data.custom[e]={id:Number(e),type:i.type,para:i.para,name:this.htmlEscape(this.parent.gui.custom.name.getValue())};this.parent.gui.custom.config.hide();this.showConfig();TWDB.Settings.set("custom",this.parent.data.custom)}},deleteConfig:function(e,t){if(typeof t=="undefined"){var n=this;var r=new west.gui.Dialog("delete - Custom skills","delete: "+this.parent.data.custom[e].name+"?");r.addButton("ok",function(){n.deleteConfig(e,true)});r.addButton("cancel");r.show()}else{var i=this.parent.data.custom;delete i[e];this.parent.data.custom={};var s=0;for(var e in i){s++;this.parent.data.custom[s]=i[e];this.parent.data.custom[s].id=s}this.parent.gui.custom.config.hide();this.showConfig();TWDB.Settings.set("custom",this.parent.data.custom)}}},getSkillImg:function(e,t){var n=1;var r=1;var i=0;switch(e){case"build":var s=Game.cdnURL+"/images/skill/skills_strength.png";r=2;break;case"punch":var s=Game.cdnURL+"/images/skill/skills_strength.png";i=1;r=2;break;case"tough":var s=Game.cdnURL+"/images/skill/skills_strength.png";i=2;r=2;break;case"endurance":var s=Game.cdnURL+"/images/skill/skills_strength.png";i=3;r=2;break;case"health":var s=Game.cdnURL+"/images/skill/skills_strength.png";i=4;r=2;break;case"ride":var s=Game.cdnURL+"/images/skill/skills_flexibility.png";r=2;break;case"reflex":var s=Game.cdnURL+"/images/skill/skills_flexibility.png";i=1;r=2;break;case"dodge":var s=Game.cdnURL+"/images/skill/skills_flexibility.png";i=2;r=2;break;case"hide":var s=Game.cdnURL+"/images/skill/skills_flexibility.png";i=3;r=2;break;case"swim":var s=Game.cdnURL+"/images/skill/skills_flexibility.png";i=4;r=2;break;case"aim":var s=Game.cdnURL+"/images/skill/skills_dexterity.png";r=2;break;case"shot":var s=Game.cdnURL+"/images/skill/skills_dexterity.png";i=1;r=2;break;case"pitfall":var s=Game.cdnURL+"/images/skill/skills_dexterity.png";i=2;r=2;break;case"finger_dexterity":var s=Game.cdnURL+"/images/skill/skills_dexterity.png";i=3;r=2;break;case"repair":var s=Game.cdnURL+"/images/skill/skills_dexterity.png";i=4;r=2;break;case"leadership":var s=Game.cdnURL+"/images/skill/skills_charisma.png";r=2;break;case"tactic":var s=Game.cdnURL+"/images/skill/skills_charisma.png";i=1;r=2;break;case"trade":var s=Game.cdnURL+"/images/skill/skills_charisma.png";i=2;r=2;break;case"animal":var s=Game.cdnURL+"/images/skill/skills_charisma.png";i=3;r=2;break;case"appearance":var s=Game.cdnURL+"/images/skill/skills_charisma.png";i=4;r=2;break;case"strength":var s=Game.cdnURL+"/images/window/skills/circle_strength.png";break;case"flexibility":var s=Game.cdnURL+"/images/window/skills/circle_flexibility.png";break;case"dexterity":var s=Game.cdnURL+"/images/window/skills/circle_dexterity.png";break;case"charisma":var s=Game.cdnURL+"/images/window/skills/circle_charisma.png";break;case"attacker":var s=TWDB.images.attacker;break;case"defender":var s=TWDB.images.defender;break;default:return jQuery("<div />")}var o="";if(typeof CharacterSkills.skills[e]!=="undefined"){var o=CharacterSkills.skills[e].name}else if(typeof CharacterSkills.attributes[e]!=="undefined"){var o=CharacterSkills.attributes[e].name}s='<img src="'+s+'" height="'+t*r+'" title="'+o+'" style="margin-left:-'+i*t+'px" />';s=jQuery(s);var u='<div style="display:block;overflow:hidden;width:'+t*n+"px;height:"+t+'px;"/>';u=jQuery(u);return u.append(s)},bag:{stack:{},interval:false,setParent:function(e){this.parent=e},showItems:function(e,t){this.parent.gui.bag.children().remove();this.items={};var n=this,r=false,i=function(e){var r=(new tw2widget.InventoryItem(ItemManager.get(e))).setCharacter(Character);var i=r.getMainDiv();var s=function(e){return function(){n.click(r,e,t)}}(e);jQuery(i).removeAttr("id").children(".TWDBbuyTip, .TWDBsellTip, .TWDBcollector").remove().end().children("img:first-child").removeAttr("id").end().click(s).appendTo(n.parent.gui.bag);n.items[e]=jQuery(i)},s,o;for(s in e){if(typeof s==="function"){break}o=e[s].id;i(o);r=r||ItemManager.get(o).type==="animal"}this.parent.gui.bag.append(jQuery((new west.gui.Button(Inventory.guiElements.instantWearButton.caption.text,n.autoEquip,n,null)).getMainDiv()).css({position:"absolute",right:"8px",bottom:"5px"}));var u=TWDB.DataManager.getAnimals();if(!r&&u.length>0){i(u[0]["id"])}this.wear()},autoEquip:function(){var e;for(e in this.items){if(this.items.hasOwnProperty(e)){jQuery(this.items[e]).click()}}},click:function(e,t,n){if(Bag.getItemByItemId(t)===undefined){return false}Wear.carry(e);this.stack[t]=e;var r=this,i;if(this.interval===false){switch(n){case"jobs":i=function(){r.wear();r.parent.jobs.update();r.parent.joblist.update()};break;case"custom":i=function(){r.wear();r.parent.customs.showSkill()};break}TWDB.Eventer.set("carryChecker",i,1);this.interval=setInterval(function(){r.carry()},100)}},carry:function(){var e=0,t,n;for(t in this.stack){n=this.stack[t];if(n===undefined||n.getImgEl().css("opacity")==="1"){delete this.stack[t]}else{e++}}if(e===0){clearInterval(this.interval);this.interval=false;TWDB.Eventer.trigger("carryChecker")}},wear:function(){var e,t;for(e in Wear.wear){t=Wear.wear[e].getId();if(typeof this.items[t]!=="undefined"){this.items[t].css("opacity","0.5")}}}},setUsedItems:function(){for(var e in this.calcdata.jobs){for(var t in this.calcdata.jobs[e].cloth){var n=this.calcdata.jobs[e].cloth[t].id;if(typeof (this.calcdata.used[n]=="undefined")){this.calcdata.used[n]=1}else{this.calcdata.used[n]++}}}for(var r in this.calcdata.custom){for(var t in this.calcdata.custom[r].cloth){var n=this.calcdata.custom[r].cloth[t].id;if(typeof (this.calcdata.used[n]=="undefined")){this.calcdata.used[n]=1}else{this.calcdata.used[n]++}}}},jobSearch:function(){var e=this;if(this.jobs.selected==0){return}if(this.gui.job.searchDiv.parent().length){this.jobs.switchJob(this.jobs.selected);return}this.gui.bag.children().remove();var t=TWDB.Map.getNearestJob(this.jobs.selected);var n=4;var r=jQuery("<table />");for(var i=0;i<t.length;i++){if(i===n){break}var s=t[i];var o="rotate("+s.angle+"deg);";var u=jQuery("<tr />");u.append('<td style="text-align:left;vertical-align:middle">'+s.time.formatDuration()+"</td>");u.append(jQuery('<td style="text-align:left;vertical-align:middle">').append(jQuery('<img src="'+TWDB.images.arrow+'" title="Direction" style="cursor:pointer;-moz-transform: '+o+"-webkit-transform:"+o+"-rotat-transform:"+o+"-ms-transform:"+o+"transform:"+o+'" />').click(function(e,t){return function(){Map.center(e,t)}}(s.x,s.y))));var a=jQuery("<td />");var f=new west.gui.Button("Open",function(e,t,n){return function(){TWDB.Jobs.openJob(e,t,n)}}(e.jobs.selected,s.x,s.y));jQuery(f.divMain).css({"min-width":"50px","max-width":"80px"});jQuery(f.divMain).find(".textart_title").css({overflow:"hidden"});f.appendTo(a);u.append(a);if(Premium.hasBonus("automation")){var a=jQuery("<td />");var f=new west.gui.Button("default",function(t,n,r){return function(){TWDB.Jobs.startJob(t,n,r,Number(e.jobs.basetime))}}(e.jobs.selected,s.x,s.y));jQuery(f.divMain).css({"min-width":"50px","max-width":"80px"});jQuery(f.divMain).find(".textart_title").css({overflow:"hidden"});f.appendTo(a);u.append(a)}r.append(u)}this.gui.job.searchDiv.children().remove();this.gui.job.searchDiv.append(r);this.gui.bag.append(this.gui.job.searchDiv)},isUsedItem:function(e){if(this.calcdata.used[e]){return true}else{return false}},getClothForJob:function(e){if(!isDefined(this.calcdata.jobs[e])||!isDefined(this.calcdata.jobs[e].cloth)){return null}return this.calcdata.jobs[e].cloth},getLPForJob:function(e){if(!isDefined(this.calcdata.jobs[e])||!isDefined(this.calcdata.jobs[e].laborpoints)){return null}return this.calcdata.jobs[e].laborpoints},getSelectedJob:function(){return this.jobs.selected},isLoaded:function(){if(isDefined(this.calcdata.loaded)){return this.calcdata.loaded}return false}};(function($){var _base=TWDB;var w=window;var Images=_base.images;var Script=_base.script;var ClothCalc=_base.ClothCalc;var Debugger=function(e){var t={};return t}($);_base.Debugger=Debugger;var Error=function(e){var t={};var n="twdb_error";var r=[];var i=true;t.report=function(e,t){if(!isDefined(e.message)){r.push({msg:"failed to add error",e:t})}else{r.push({msg:t+" "+(e.stack&&(e.stack.match(/:\d+:\d+/)||[])[0]||""),e:e.message})}if(i){i=false;WestUi.NotiBar.add(new OnGoingPermanentEntry(function(){s()},"tw-db.info: an error occured","tip"))}};var s=function(){var t=new west.gui.Scrollpane;e(t.getMainDiv()).css("height","370px");e(t.getMainDiv()).find(".tw2gui_scrollpane_clipper_contentpane").addClass("selectable");var i='<table border="1" cellpadding="3" cellspacing="1">';for(var s=r.length-1;s>=0;s--){i+="<tr><td>"+s+"</td><td>"+r[s].msg+"</td><td>"+r[s].e+"</td></tr>"}i+="</table>";t.appendContent(i);var o=wman.open(n,null,"noreload").setMiniTitle("TWDB Errorlog").setTitle("tw-db.info Errorlog").appendToContentPane(t.getMainDiv())};return t}($);_base.Error=Error;Debugger.Error=Error;var Loader=function(e){var t={};var n=[];var r={};var i={};var s;var o=false;var u=false;var a=false;var f=0;t.add=function(e,t,r,i){var s={ready:false};n.push({key:e,txt:t,call:r,dep:i||{},ready:s,count:0});return s};t.init=function(){if(s){return}s=w.setInterval(function(){l()},500)};var l=function(){if(u){return}u=true;if(o===false){if(!c()){u=false;return}TWDB.Cache.init();r.Cache=true;try{Updater.query();h()}catch(e){Error.report(e,"");(new UserMessage("failed to register tw-db.info script on TheWestApi",UserMessage.TYPE_FATAL)).show();return d()}if(TWDB.Util.isNewIDsystem()){TWDB.Util.wrapBetaGetItem()}if(TWDB.Util.isNewIDsystem()&&window.location.href.indexOf(".beta.the-west.net")===-1&&!TWDB.Util.idMigrationDone()){try{TWDB.Util.backupData()}catch(e){}try{TWDB.Util.idMigrator();(new UserMessage("Converting TW-DB data to new item ID system successful.",UserMessage.TYPE_SUCCESS)).show();TWDB.Util.simpleRestore(true)}catch(e){Error.report(e,"Item ID conversion failed.");(new UserMessage("Item ID conversion failed. Do not use the ANALYSERS if you want to save your data!",UserMessage.TYPE_FATAL)).show();TWDB.Util.simpleRestore()}}return p()}if(isDefined(i[o.key])){return p()}if(o.ready.ready){r[o.key]=true;a=false;return p()}u=false};var c=function(){if(!isDefined(w.jQuery)||!isDefined(w.TheWestApi)||!isDefined(w.TheWestApi.version)||w.ItemManager.get(2e3)===undefined||!isDefined(w.Character)||w.Character.playerId===0||!w.Bag.loaded){return false}else{return true}};var h=function(){var t=w.TheWestApi.register("twdb_clothcalc","tw-db.info Cloth Calc","2.04",String(Script.gameversion),"scoobydoo, Dun, Petee, Bluep, Tom Robert, xShteff [tw-db.info]","https://tw-db.info");var n='<br><br><form action="https://www.paypal.com/cgi-bin/webscr" method="post">'+'<input name="cmd" value="_s-xclick" type="hidden">'+'<input name="encrypted" value="-----BEGIN PKCS7-----MIIHNwYJKoZIhvcNAQcEoIIHKDCCByQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhb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SmY/p+xjcPG0JBuRaT0uGNOeiPdXwC+HiDPP6EhJXXEZv5fqXPmOUJPdovWYgyu/LgVCRAZw1qp3995m-----END PKCS7-----" type="hidden">'+'<input type="image" src="https://www.paypalobjects.com/en_US/DE/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">'+'<img width="1" border="0" height="1" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" alt=""></form><br>';var r=e("<div style='font-family:comic sans ms; font-size:13pt; padding-top:10px; text-align:center;' />").append("The UserScript ClothCalc is a project created by the TW-DB.info team. It offers plenty of features and extensions that will give you an enhanced game experience - saving your time and optimizing some of your activities.",n,"Thank you!");t.setGui(r);if(t.isOutdated()){w.TheWestApi.displayOutdated()}};var p=function(){if(n.length===0){return d()}o=n.shift();o.count++;if(o.count>f){if(a){Error.report({message:"deadlock detected"},"failed to load module: "+o.key);i[o.key]=true;return p()}f++;a=true}for(var e in o.dep){if(!isDefined(r[e])){if(TWDB.script.isDev()){console.log(o.key,"needs ",e)}n.push(o);return p()}}try{o.call()}catch(t){Error.report(t,"failed to load module: "+o.key);i[o.key]=true;return p()}u=false;l()};var d=function(){w.clearInterval(s);w.setTimeout(function(){delete t},1e3)};t.stack=n;t.loaded=r;t.failed=i;t.current=o;return t}($);Debugger.Loader=Loader;var Cache=function(e){var t={};var n={};var r="";var i={};var s=function(e){if(!i[e]){i[e]=true;t.save("keys",i)}};var o=function(){if(n.ready){return}r="twdb_"+Character.playerId+"_";i=t.load("keys");if(!i){i={keys:true}}n.ready=true};t.load=function(n){s(n);try{return e.parseJSON(decodeURIComponent(localStorage.getItem(r+n)))}catch(i){Error.report(i,"load "+n+" from cache");t.save(n,null);return null}};t.save=function(e,n){s(e);try{localStorage.setItem(r+e,encodeURIComponent(JSON.stringify(n)));return true}catch(i){Error.report(i,"save "+e+" to cache");t.save(e,null);return false}};t.reset=function(n,s){try{if(n){if(isDefined(s)){localStorage.removeItem(s)}else{for(var o in i){localStorage.removeItem(r+o)}}(new UserMessage("Reset Done, page will now be reloaded",UserMessage.TYPE_SUCCESS)).show();location.href=location.href.replace(location.hash||"#","")}else{var u=e("<div><h2>do you really want to reset the whole Cache of tw-db Userscript?</h2></div>");var a=(new west.gui.Textfield("twdb_cache_key")).setSize(40).setLabel("Key:");u.append(a.getMainDiv());var f=(new west.gui.Checkbox("all Keys")).setSelected(true);f.setCallback(function(e){if(e){a.setValue("")}});e(a.getMainDiv()).find("span").css("font-size","12px");e(a.getMainDiv()).find("input").keyup(function(){f.setSelected(false)});u.append(e('<div style="display:block;" />').append(f.getMainDiv()));(new west.gui.Dialog("tw-db Cache Reset",u,west.gui.Dialog.SYS_QUESTION)).addButton("ok",function(){if(f.isSelected()){t.reset(true)}else{t.reset(true,a.getValue())}}).addButton("cancel").show()}}catch(l){Error.report(l,"cache reset")}};t.init=o;return t}($);_base.Cache=Cache;Debugger.Cache=Cache;var Worker=function(e){var t={};var n=[];var r=false;var i=false;t.add=function(e){n.push(e);if(r){return}r=w.setInterval(function(){s()},100)};var s=function(){if(i){return}i=true;var e=n.shift();try{e()}catch(t){Error.report(t,"Worker")}if(n.length==0){w.clearInterval(r);r=false}i=false};return t}($);Debugger.Worker=Worker;var Jobs=function(e){var t={};var n={};var r=[];var i={};var s={};var o=[1828e3,1829e3,183e4,2e6,2003e3,2006e3,2009e3];var u;var a={};var f=function(){if(n.ready){return}var t=0;var f=0;var c={};while(true){t++;var h=w.JobList.getJobById(t);if(!h){f++;if(f>5){break}continue}f=0;r.push(h.id);i[h.name.toLowerCase()]=h.id;s[h.shortname.toLowerCase()]=h.id;for(var p in h.yields){if(isNaN(p)||c[p]){continue}c[p]=true;o.push(Number(p))}}u=function(e){var t={description:"",duration:1800,energy:6,groupid:null,id:255,malus:0,name:"Construction",randomyields:[],shortname:"construction",skills:{build:3,repair:1,leadership:1},yields:{},calcJobPoints:function(){return 0},canDo:function(){return true}};return t}(e);r.push(255);i[u.name.toLowerCase()]=255;s[u.shortname.toLowerCase()]=255;var d=function(e,t){var n=e===255?u:w.JobList.getJobById(e);var r=t===255?u:w.JobList.getJobById(t);return n.name>r.name};r.sort(d);o.sort();a=Cache.load("jobdata");if(a===null||typeof a!=="object"){a={}}Eventer.set("TWDBdataLoaded",function(){l()});n.ready=true};n=Loader.add("Jobs","tw-db Jobsystem",f,{Cache:true});var l=function(){a={};Cache.save("jobdata",a)};t.getJobByName=function(n){n=e.trim(n).toLowerCase();if(!isDefined(i[n])){return null}return t.getJobById(i[n])};t.getJobByShortname=function(n){n=e.trim(n).toLowerCase();if(!isDefined(s[n])){return null}return t.getJobById(s[n])};t.getJobById=function(t){var n;if(t===255){n=u}else{n=w.JobList.getJobById(t);if(!n){return n}}var r=e.extend(true,{},n);var i=1;if(w.Character.charClass=="adventurer"){if(w.Premium.hasBonus("character")){i*=1.2}else{i*=1.1}}if(w.Premium.hasBonus("money")){i*=1.5}for(var s=0;s<r.randomyields.length;s++){r.randomyields[s]=(r.randomyields[s]*i).round(2)}if(typeof r.yields.length=="undefined"){for(var o in r.yields){r.yields[o].prop=(r.yields[o].prop*i).round(2)}}return r};t.openJob=function(e,t,n){w.JobWindow.open(e,t,n)};t.startJob=function(e,t,n,r){w.JobWindow.startJob(e,t,n,Number(r)||3600)};t.getAllJobs=function(){return r};t.isProduct=function(t){return e.inArray(Number(t),o)};t.getPopup=function(e,n){var r='<div style="min-width:60px;text-align:center" >';var i=t.getJobById(e);if(isDefined(i)){r+='<span style="font-weight:bold;display:block;">'+i.name+"</span>"+'<div class="job" style="position:relative;left:50%;margin:10px -25px;">'+"<div "+(!isDefined(n)?"":'class="featured '+n+'"')+"></div>"+'<img src="'+Game.cdnURL+"/images/jobs/"+i.shortname+'.png" class="job_icon" >'+"</div>"}return r+="</div>"};return t}($);_base.Jobs=Jobs;Debugger.Jobs=Jobs;var Window=function(e){var t={};var n="twdb_window";var r=null;var i=null;var s={};var o={};var u=function(){if(o.ready){return}var t=e('<div title="tw-db.info" class="menulink" />').css("background-image","url("+Images.button+")").mouseenter(function(){e(this).css("background-position","-25px 0px")}).mouseleave(function(){e(this).css("background-position","0px 0px")}).click(function(){a()});e("#ui_menubar").append(e('<div class="ui_menucontainer" id="TWDB_ClothCalc_menubuttons" />').append(t).append('<div class="menucontainer_bottom" />'));ready=true;o.ready=true};o=Loader.add("Window","tw-db Scriptwindow",u);t.open=function(e){a(e)};var a=function(t){r=wman.open(n,null).setMiniTitle("tw-db.info").setTitle("tw-db.info");r.appendToContentPane(e('<div style="width:100%;text-align:center;position:absolute;bottom:0px;left:0px;height:15px;display:block;font-size:12px;color:#000000;">.:powered by tw-db team:. | <a href="https://tw-db.info" style="font-weight:normal;color:#000000;" target="_blank">.:tw-db.info:.</a> | '+(Script.version/100+" rev. "+Script.revision)+"</div>"));r.appendToContentPane(e('<div title=" tw-db support " style="width:19px;height:19px;position:absolute;bottom:-5px;right:5px;display:block;cursor:pointer;" />').append('<img src="'+Images.iconSupport+'" />').click(function(){Support.open()}));var o;for(var u in s){if(!isDefined(o)){o=u}if(t==u){o=u}r.addTab(s[u].name,u,function(e,t){f(t)});s[u].gui.children().remove();r.appendToContentPane(s[u].gui)}if(isDefined(o)){i=s[o].gui;f(o)}};var f=function(e){i.hide();r.showLoader();r.activateTab(e);if(!isDefined(s[e])){return}if(s[e].title!==""){r.setTitle("tw-db.info "+s[e].title)}else{r.setTitle("")}i=s[e].gui;i.show();w.setTimeout(s[e].callback,10)};t.addTab=function(t,n,r,i){s[t]={title:r,name:n,callback:i,gui:null};s[t].gui=e('<div style="margin-top:10px;"/>').hide();return s[t].gui};t.hideLoader=function(){r.hideLoader()};return t}($);Debugger.Window=Window;var Support=function(e){var t={};var n="twdb_support";var r={};t.addKey=function(e,t){r[e]=t};t.open=function(){var t=e('<p style="margin:10px;">Please include the text displayed below in a bug report sent using <a href="https://tw-db.info/?strana=contact" target="_blank">our contact form</a> and also try to describe how to reproduce this error (what did you do when it occured). Thanks!</p>');var i=e('<div style="margin:10px;"/>');var s="[CODE]";for(var o in r){s+=String(o)+"\n";s+=String(r[o])+"\n";s+="----------"+"\n"}s+="[/CODE]";i.append((new west.gui.Textarea).setContent(s).setWidth(600).setHeight(250).setReadonly().getMainDiv());wman.open(n,null).setMiniTitle("tw-db.info Support").setTitle("tw-db.info Support").appendToContentPane(t).appendToContentPane(i)};return t}($);Debugger.Support=Support;var Timer=function(e){var t={};var n=0;var r=0;var i=0;t.getTimeout=function(){var e=(new Date).getTime();if(e-n<2e3){r++}else{r=0}if(e-n<6e4){i++}else{i=0}n=e;var t=0;if(i>50){t=6e4}if(r<20){return t+200}return t+2e3};return t}($);Debugger.Timer=Timer;var Eventer=function(e){var t={};var n={};t.set=function(e,t,r){if(!isDefined(n[e])){n[e]={}}if(!isDefined(r)){var r=false}var i=Number((new Date).getTime());while(n[e][i])i++;n[e][i]={id:i,call:t,count:r};return i};t.trigger=function(e){if(!isDefined(n[e])){return}var t=0;for(var r in n[e]){if(!isDefined(n[e][r].id)){continue}w.setTimeout(n[e][r].call,10);if(n[e][r].count==false){t++;continue}n[e][r].count--;if(n[e][r].count>0){t++;continue}}if(t==0){delete n[e]}};t.remove=function(e,t){if(!isDefined(n[e])||!isDefined(n[e][t])){return false}delete n[e][t]};return t}($);_base.Eventer=Eventer;Debugger.Eventer=Eventer;var Calc=function(e){var t={};var n=false;var r={sets:{}};var i={sets:{},items:{}};var s={};var o=function(e){for(set in e){var t=e[set];var n={};var i={},s={},o={};var u=0;for(level in t.bonus){if(!t.bonus.hasOwnProperty(level))continue;n[level]={jobs:{},attributes:[],skills:[]};if(u>0){for(var a=parseInt(u,10)+1;a<=level;++a){n[a]=JSON.parse(JSON.stringify(n[u]))}}for(bonus in t.bonus[level]){if(!t.bonus[level].hasOwnProperty(bonus))continue;var f=t.bonus[level][bonus];var l=TWDB.ClothCalc._skill2id[f.name];switch(f.type){case"job":if(!isDefined(n[level]["jobs"][f.job]))n[level]["jobs"][f.job]=0;n[level]["jobs"][f.job]+=f.value;break;case"attribute":if(!isDefined(i[l]))i[l]=0;i[l]+=f.value;n[level]["attributes"][l]=i[l];for(iT=0;iT<TWDB.ClothCalc._sk4attr[f.name].length;iT++){var c=TWDB.ClothCalc._sk4attr[f.name][iT];if(!isDefined(s[c]))s[c]=0;s[c]+=f.value;n[level]["skills"][c]=s[c]}break;case"skill":if(!isDefined(s[l]))s[l]=0;s[l]+=f.value;n[level]["skills"][l]=s[l];break;case"character":if(f.bonus&&f.key==="level"){var h=f.roundingMethod;if(f.bonus.type==="skill"){var p=TWDB.ClothCalc._skill2id[f.bonus.name];if(!isDefined(s[p]))s[p]=0;s[p]+=Math[h](Character.level*f.bonus.value);n[level]["skills"][p]=s[p]}else if(f.bonus.type=="attribute"){for(iT=0;iT<TWDB.ClothCalc._sk4attr[f.bonus.name].length;iT++){var c=TWDB.ClothCalc._sk4attr[f.bonus.name][iT];if(!isDefined(s[c]))s[c]=0;s[c]+=Math[h](Character.level*f.bonus.value);n[level]["skills"][c]=s[c]}}else if(f.bonus.type=="job"){if(!isDefined(n[level]["jobs"][f.bonus.job]))n[level]["jobs"][f.bonus.job]=0;n[level]["jobs"][f.bonus.job]+=Math[h](Character.level*f.bonus.value)}}break;default:break}}u=level}r.sets[set]=n}return r.sets};var u=function(){if(s.ready){return}Worker.add(function(){return function(){r=o(west.storage.ItemSetManager._setList);s.ready=true;n=true}}())};s=Loader.add("Calc","tw-db Calculator",u,{});t.getCcCache=function(){return i};t.getSetCache=function(){return r};t.getSetBonusForJob=function(e,t,n){if(isDefined(i.sets[e])&&isDefined(i.sets[e][t])&&isDefined(i.sets[e][t][n])){return i.sets[e][t][n]}try{return a(e,t,n)}catch(r){Error.report(r,"calcSetBonusForJob ("+e+" "+t+" "+n+")")}return 0};t.getItemBonusForJob=function(e,t){try{if(isDefined(i)&&isDefined(i.items)&&isDefined(i.items[e])&&isDefined(i.items[e][t])){return i.items[e][t]}return f(e,t)}catch(n){Error.report(n,"calcItemBonusForJob ("+e+" "+t+")")}return 0};t.isCached=function(e,t){if(isDefined(i.items[e])&&isDefined(i.items[e][t])){return true}else{return false}};var a=function(e,t,n){if(!isDefined(r[e])){console.log({message:"unknown set "+e},"calcSetBonusForJob");return 0}if(!isDefined(r[e][t])){return 0}var s=r[e][t];var o=Jobs.getJobById(n);if(!o){return 0}var u=0;if(isDefined(s.jobs["all"])){u+=s.jobs["all"]}if(isDefined(s.jobs[n])){u+=s.jobs[n]}for(var a in o.skills){var f=o.skills[a];if(isDefined(s.skills[TWDB.ClothCalc._skill2id[a]])){u+=s.skills[TWDB.ClothCalc._skill2id[a]]*f}}if(!isDefined(i.sets[e])){i.sets[e]={}}if(!isDefined(i.sets[e][t])){i.sets[e][t]={}}i.sets[e][t][n]=u;return u};var f=function(e,t){var n=ItemManager.get(e);if(!n){return 0}var r=Jobs.getJobById(t);if(!r){return 0}var s=n.getValue(r.skills,t);if(!isDefined(i.items[e])){i.items[e]={}}i.items[e][t]=s;return s};return t}($);_base.Calc=Calc;Debugger.Calc=Calc;var Importer=function(e){var t={};var n={};t.div=null;var r=function(){if(n.ready){return}t.div=Window.addTab("importer","Importer","",function(){i()});n.ready=true};n=Loader.add("Importer","tw-db Importersystem",r,{Window:true});var i=function(){t.div.children().remove();Window.hideLoader();e.getScript(Script.protocol+"://"+Script.url+"/cache/js/sDoImport_"+Script.lang+".js")};return t}($);_base.Importer=Importer;Debugger.Importer=Importer;var Settings=function(e){var t={};var n={};var r=null;var i={};var s=function(){if(i.ready){return}var e=Cache.load("settings");if(typeof e==="object"&&e!==null){n=e}else{n={}}TWDB.Util.addCss("span.twdb_sett_capt { font-size: 115%; font-weight: bold; font-style: italic; display: inline-block; margin-top: 8px; text-shadow: 2px 1px 2px #643; }");r=Window.addTab("settings","settings","settings",o);i.ready=true};i=Loader.add("Settings","tw-db Settingssystem",s,{Cache:true,Window:true});var o=function(){r.children().remove();var i=new west.gui.Scrollpane;e(i.getMainDiv()).css("height","300px");r.append(i.getMainDiv());var s=[[9,"","Inventory",false],[0,"jobBoniTooltip","show laborpoint information on inventory window for the selected job",false],[0,"collector","mark items on Traders and Market you did not own",false],[0,"buyTip","show buy tip on traders",false],[0,"sellTip","show sell tip on inventory window",false],[0,"sellTip1","sell items you have more than once","Settings for Sell-Tip"],[0,"sellTip2","sell items which are not used on any job","Settings for Sell-Tip"],[0,"sellTip3","never sell named items","Settings for Sell-Tip"],[0,"sellTip4","never sell item, which could only be found","Settings for Sell-Tip"],[0,"sellTip5","Never sell Set-Items","Settings for Sell-Tip"],[0,"pinitems","Enable pinning items in the recently used section of Inventory",false],[0,"collectorsell","add a button to sell all but one of the selected item to the Mobile Trader",false],[9,"","Quests",false],[0,"questwiki","Include tw-db and ClothCalc into Quest Windows",false],[0,"questcancle","On Canceling a Quest you will get a Question if you realy want to do that",false],[0,"qbswitch","Enable switching between introduction and completion text in the Quest book",false],[0,"qfulltext","Always display full quest story texts",false],[9,"","Market",false],[0,"marketmap","Use the Marketmap",false],[0,"marketreminder","Add a Reminder for Marketauctions",false],[0,"marketselldialog","Enhance the market sell dialog",false],[9,"","Jobs",false],[0,"jobwin_ccbutton","Add ClothCalc to job windows",false],[0,"jobwin_showlp","Show labor points in job windows",false],[9,"","Task list",false],[0,"tasklistpoints","show labor points and LP-hints on the task list",false],[9,"","GUI",false],[0,"duelmotivation","Add the Duel Motivation as permanent Indicator",false],[0,"directsleep","Get a Button to directly go to Hotel or Barrack",false],[0,"deposit","Add a button for deposit Money",false],[0,"noshopsale","disable Shop SALE notification",false],[0,"expbarvalues","show values on experience bar; Credits & thanks to Leones/Slygoxx",false],[0,"mini_chatgui","allow Chat room GUI to be minimized",false],[0,"customcounterpos","reposition event counters (event currency, Hiro&#38;#39;s script) on wide screens",false],[0,"noscrollbars","disable scrollbars on small screens or when moving windows too far",false],[9,"","Mini map",false],[0,"showbonusjobs","Show Bonus Jobs on minimap",false],[0,"showscrollto","Add a scroll-to coordinate input field to the minimap",false],[9,"","Fort",false],[0,"fortrecruitment","Show the Fortrecruitment Overview",false],[0,"enhancedfortrecruitment","show Player near Fort",false],[9,"","Miscellaneous",false],[0,"chat","use chat enhancement",false],[0,"notes","use the Notes-Feature",false],[0,"forumlastpage","Add an Icon on Forum for directly open the last Threadpage",false],[0,"fastskillchange","activate fast Skill Change on Skill-Window (Hold Mouse Button down)",false],[0,"autodeposit","Get a Deposit Hint if you arrive at your Hometown with Money",false],[0,"chestanalyser","Create a Statistic for Chests you open",false],[0,"weeklycrafting","Get notified when the crafting waiting period expires",false],[0,"noworkqueuepa","Remove Hints for the Automation PA","Premium settings"],[0,"nofetchallpa","Deactivate Premium prompt when fetching all items from the market","Premium settings"],[0,"nowofnuggets","Don&#38;#39;t use nuggets as default payment in event games (when available)","Premium settings"],[0,"instanthotel","Add a hotel button to town signs",false],[0,"telegramsource","add button to switch to unformatted text in telegrams",false],[8,"clothPos"],[0,"wear_openmin","open Equipment window minimized when opening ClothCalc",false]];var o={};var a=e("<table />");var f={};for(var l=0;l<s.length;l++){var c=s[l][1];o[c]=t.get(c);var h=e("<tr />");if(s[l][0]===9){h.append(e('<td colspan="2" />').append(e('<span class="twdb_sett_capt" />').text((s[l][2]+"").twdb_twiceHTMLUnescape())));a.append(h);continue}if(s[l][0]===8){h.addClass("placeholder_"+s[l][1]);a.append(h);continue}switch(s[l][0]){case 0:var p=function(e){return function(){o[e]=!o[e]}}(c);var d=new west.gui.Checkbox("",!o[c]?"":"tw2gui_checkbox_checked",p);h.append(e('<td style="width:25px;" />').append(d.getMainDiv()));break}h.append(e("<td />").text((s[l][2]+"").twdb_twiceHTMLUnescape()));if(s[l][3]){var v=s[l][3];if(!isDefined(f[v])){f[v]=e("<table />").hide();a.append(e('<tr><td style="width:25px;cursor:pointer;" /><td style="cursor:pointer;" class="item_sell"><span class="twdb_cat butMinus" style="margin-top: -3px;" />&nbsp;&nbsp;'+v.twdb_twiceHTMLUnescape()+"</td></tr>").click(function(t){return function(){e(f[t]).toggle();e(this).find("span.twdb_cat").toggleClass("butMinus").toggleClass("butPlus")}}(v)),e("<tr>").append(e('<td style="width:25px;">'),e("<td>").append(f[v])))}f[v].append(h)}else{a.append(h)}}var m=new west.gui.Combobox;m.addItem("left","left").addItem("right","right").addItem("custom","saved Position");m.select(String(n["clothPos"]));e("tr.placeholder_clothPos",a).removeClass("placeholder_clothPos").append(e('<td colspan="2" />').append(m.getMainDiv(),"<span>&nbsp;right</span>"));a.append(e("<tr><td>&nbsp;</td></tr>"));var g=new west.gui.Button("Save",function(){switch(m.getValue()){case"left":n["clothPos"]="left";break;case"right":n["clothPos"]="right";break;default:n["clothPos"]="custom";break}u(o)});var y=e('<div style="width:100%;text-align:right;" />').append(e('<img style="position:relative;top:-20px;cursor:pointer;" title=" reset local Storage" src="'+Images.iconReset+'" />').click(function(){Cache.reset()}));i.appendContent(a);r.append(g.getMainDiv()).append(y);Window.hideLoader()};t.get=function(e,r){if(!isDefined(n[e])){t.set(e,r);return r}return n[e]};t.set=function(e,t){n[e]=t;Cache.save("settings",n)};var u=function(e){for(var t in e){n[t]=e[t]}if(Cache.save("settings",n)){(new UserMessage("saved successful",UserMessage.TYPE_SUCCESS)).show()}else{(new UserMessage("?save_error",UserMessage.TYPE_ERROR)).show()}};return t}($);_base.Settings=Settings;Debugger.Settings=Settings;var JobWindowCC=function(e){var t={};var n={};var r=function(){if(n.ready){return}if(Settings.get("jobwin_ccbutton",true)){i()}if(Settings.get("jobwin_showlp",true)){s()}n.ready=true};var i=function(){try{JobWindow.prototype.__twdb__getBestWearButton=JobWindow.prototype.__twdb__getBestWearButton||JobWindow.prototype.getBestWearButton;JobWindow.prototype.getBestWearButton=function(){var t=JobWindow.prototype.__twdb__getBestWearButton.apply(this,arguments);var n=this;return t.append(e('<div class="twdb_bestwear" title="Show this Job at ClothCalc Window">').click(function(e){e.stopImmediatePropagation();TWDB.ClothCalc.open(n.job.id,"job")}))};var t="div.job_bestwearbutton {left: 15px!important; width: 210px;}\n"+"div.twdb_bestwear {background: url('"+TWDB.images.bestwear+"') no-repeat top; "+"height: 55px; width: 55px; position: relative; left: 195px; top: -15px;}\n"+"div.job_bestwearbutton:hover .twdb_bestwear {background-position: bottom;}";TWDB.Util.addCss(t,"bestwear")}catch(n){Error.report(n,"manipulate JobWindow.prototype.getBestWearButton")}};var s=function(){try{JobWindow.prototype.__twdb__initView=JobWindow.prototype.__twdb__initView||JobWindow.prototype.initView;JobWindow.prototype.initView=function(){var t=JobWindow.prototype.__twdb__initView.apply(this,arguments);var n="&nbsp;&nbsp;("+(this.currSkillpoints-this.job.workpoints)+"&nbsp;LP)";e("div.tw2gui_inner_window_title > .textart_title",this.window.divMain).append(n);return t}}catch(t){Error.report(t,"manipulate JobWindow.prototype.initView")}};n=Loader.add("JobWindowCC","tw-db Job window",r,{Settings:true,ClothCalc:true});return t}($);var Tools=function(e){var t={};var n={};var r;var i=function(){if(n.ready){return}r=Window.addTab("tools","Tools","",function(){s()});n.ready=true};n=Loader.add("Tools","tw-db Toolsystem",i,{Window:true});var s=function(){r.children().remove();(new west.gui.Button("open Tool",function(){w.open("https://"+Script.url+"/?strana=politic_map&world="+location.hostname.split(".")[0])})).appendTo(r);var t=new west.gui.Button;t.setCaption("Alliance Import".escapeHTML()).click(function(){t.disable();e.getScript(Script.protocol+"://"+Script.url+"/js/sDoAllianceImport.js")}).appendTo(r);Window.hideLoader()};return t}($);Debugger.Tools=Tools;var Updater=function(e){var t={};var n={};var r;var i=false;var s=function(){if(n.ready){return}r=Window.addTab("notes","Release Notes","Release Notes",function(){u()});if(!Cache.load("version"))Cache.save("version",Script.version+" "+Script.revision);else if(Script.version+" "+Script.revision!==Cache.load("version")){Cache.save("version",Script.version+" "+Script.revision);i=true;var e="The Userscript was Updated";var t='<div class="txcenter">The Userscript =1= was updated. Do you want to see the Release-Notes?</div>';t=t.replace("=1=","<b>"+Script.name+"</b>");(new west.gui.Dialog(e,t,"warning")).addButton("no").addButton("yes",function(){Window.open("notes")}).show()}n.ready=true};n=Loader.add("Updater","tw-db Updater",s,{Cache:true,Window:true});var o=function(t,n){var r="The Userscript needs an Update";var i='<div class="txcenter">for userscript =1= is a new version available, please click ok to update the Userscript.</div>';i=i.replace("=1=","<b>"+Script.name+"</b>");i+="<div><br />current version: "+Script.version/100+" revision "+Script.revision+"<br />new version: "+t/100+" revision "+n+"</div>";var s=Script.protocol+"://"+Script.update;if(e.browser.webkit){s+="?"+Script.version+Script.revision}var o=function(){try{location.href=s}catch(e){}(new west.gui.Dialog(Script.name,"Please reload the game after installing.","warning")).setModal(true,false,true).show()};(new west.gui.Dialog(r,i,west.gui.Dialog.SYS_WARNING)).addButton("Not now").addButton("ok",o).show()};t.wasUpdated=function(){return i};var u=function(){r.children().remove();var t=new west.gui.Scrollpane;e(t.getMainDiv()).css("height","335px");var n=false;for(var i=0;i<Script.notes.length;i++){var s=e("<h3><a>Version "+String(Script.notes[i].version/100)+"</a></h3>").css("border-bottom","1px solid black").click(function(){e(this).next().toggle()});var o=e("<div>"+Script.notes[i].notes+"</div>");t.appendContent(s).appendContent(o);if(n){o.hide()}n=true}r.append(t.getMainDiv());Window.hideLoader()};t.query=function(){setTimeout(function(){e.getScript(Script.protocol+"://"+Script.check+"?"+(new Date).getTime())},500)};t.check=function(e,t,n){if(Script.version!==e||Script.revision!==t){o(e,t)}};return t}($);_base.Updater=Updater;Debugger.Updater=Updater;var Sleep=function(e){var t={};var n=null;var r=[];var i=[];var s={};var o=1;var u=false;var a={};var f;var l=false;var c=[];var h=["","cubby","bedroom","hotel_room","apartment","luxurious_apartment"];var p=function(){if(a.ready){return}if(Settings.get("directsleep",true)){var e="ul.tw2gui_selectbox_content.twdb_sleepmenu {max-width: 320px!important; white-space: nowrap; overflow-y: auto; overflow-x: hidden;}"+"ul.tw2gui_selectbox_content.twdb_sleepmenu > div.tw2gui_scrollpane {width: 320px!important}"+"ul.tw2gui_selectbox_content.twdb_sleepmenu > li {padding-right: 20px!important;}";TWDB.Util.addCss(e);s=Cache.load("barracks");if(s==null||typeof s!=="object"){s={}}d();if(Character.homeTown.town_id!==0)S();else E()}a.ready=true};a=Loader.add("Sleep","tw-db DirectSleep",p,{Cache:true,Settings:true});var d=function(){n=GameInject.CharacterButton.add(Images.buttonSleep);n.addMousePopup("sleep").click(function(e){if(w.Character.homeTown.town_id!==0&&r.length==0)y();else g(e)})};var v=function(t,n,r){var i=(new west.gui.Selectbox(true)).addListener(function(e){switch(e){case"home":y();break;default:b(e);break}});if(w.Character.homeTown.town_id!==0)i.addItem("home","Hotel&nbsp;"+w.Map.calcWayTime(f,w.Character.homeTown).formatDuration());for(var s=0;s<r;s++)if(t[s].stage!==0)i.addItem(s,"Stage&nbsp;"+t[s].stage+"&nbsp;"+t[s].distance.formatDuration()+"&nbsp;|&nbsp;"+t[s].name);e(i.elContent).addClass("twdb_sleepmenu");i.show(n);l=false};var m=function(e,t,n){if(e==t)v(c,n,t);else if(c[e].hasOwnProperty("stage"))m(++e,t,n);else Ajax.remoteCallMode("building_hotel","get_data",{town_id:c[e].town_id},function(r){if(r.error)return(new UserMessage(r.msg)).show();c[e].stage=r.hotel_level;m(++e,t,n)})};var g=function(e){if(l)return;l=true;f=Map.getLastPosition();if(w.Character.homeTown.town_id===0){for(var t=0;t<c.length;t++)c[t].distance=w.Map.calcWayTime(f,c[t]);c.sort(function(e,t){return e.distance-t.distance});var n=c.length>5?5:c.length;m(0,n,e)}else{for(var t=0;t<r.length;t++)r[t].distance=w.Map.calcWayTime(f,r[t]);r.sort(function(e,t){return e.distance-t.distance});v(r,e,r.length)}};var y=function(){Ajax.remoteCallMode("building_hotel","get_data",{town_id:w.Character.homeTown.town_id},function(e){if(e.error)return(new UserMessage(e.msg)).show();var t=h[e.hotel_level];w.TaskQueue.add(new TaskSleep(w.Character.homeTown.town_id,t))})};var b=function(e){if(isDefined(c[e]))w.TaskQueue.add(new TaskSleep(c[e].town_id,h[c[e].stage]));else if(isDefined(r[e]))w.TaskQueue.add(new TaskFortSleep(r[e].id,r[e].x,r[e].y))};var E=function(){Ajax.get("map","get_minimap",{},function(e){if(e.error)return(new UserMessage(e.msg)).show();for(var t in e.towns)if(e.towns[t].member_count)c.push(e.towns[t])})};var S=function(){if(w.Character.homeTown.alliance_id==0){return}Ajax.remoteCallMode("alliance","get_data",{alliance_id:w.Character.homeTown.alliance_id},function(e){if(e.error){return(new UserMessage(e.error)).show()}i=e.data.forts;if(i.length>0){w.setTimeout(function(){x()},Timer.getTimeout())}})};var x=function(){try{if(i.length<=0){return}var t=i.pop();var n=t.fort_id;if(!isDefined(s[n])){s[n]={time:0,stage:0}}e.extend(s[n],{id:n,x:t.x,y:t.y,name:t.name,type:t.type});if(s[n].stage!==5&&s[n].time+o*86400>(new Date).getTime()/1e3){r.push(s[n]);if(i.length>0){w.setTimeout(function(){x()},Timer.getTimeout())}else{Cache.save("barracks",s)}return}Ajax.remoteCallMode("fort_building_barracks","index",{fort_id:n},function(e){if(e.error){(new UserMessage(e.error)).show()}else{s[n].time=Number((new Date).getTime()/1e3).round(0);if(isDefined(e.barrackStage)){s[n].stage=e.barrackStage}}r.push(s[n]);if(i.length>0){w.setTimeout(function(){x()},Timer.getTimeout())}else{Cache.save("barracks",s)}})}catch(u){Error.report(u,"getFortData")}};return t}($);Debugger.Sleep=Sleep;var Analyser=function(e){var t={};var n=false;var r=null;var s=null;var o=false;var u=[];var a=[];var f=0;var l={};var c={};t.extra=false;var h={};var p=function(){if(h.ready){return}TWDB.Util.addCss(".messages-analyser-job .item img.tw_item { width: 30px; height: 27px; }"+".messages-analyser-job .item .count { bottom: -4px; }"+".messages-analyser-job .item span.usable { display: none; }"+"div.tw2gui_window .messages-analyser-job div.fancytable .row > div { display: none; vertical-align: top; }"+".messages-analyser-job.view-rewards div.fancytable .row > div.view-rewards { display: inline-block; }"+".messages-analyser-job.view-items div.fancytable .row > div.view-items { display: inline-block; }"+"div.tw2gui_window .messages-analyser-job div.fancytable div.trows div.tbody div.row { height: auto; }");var t=Cache.load("statistic");if(typeof t=="object"&&t!==null){r=t}else{d("all",true)}if(!r.ver){d("all",true)}switch(r.ver){case 1:d("job",true,1);d("duel",true,1);r.ver=2;case 2:d("job",true,1);d("duel",true,1);r.ver=3;case 3:d("chest",true,1);r.ver=4}s=e.extend(true,{},r);GameInject.addTabOnMessagesWindow("Job-Analyser","analyser-job",function(){T("job")});if(Settings.get("chestanalyser",true)){GameInject.ItemUse(v.add);GameInject.addTabOnMessagesWindow("Chest Analyser","analyser-chest",function(){v.show()})}h.ready=true};h=Loader.add("Analyser","tw-db Job-Analyser",p,{Cache:true,Settings:true,Jobs:true});t.restore=function(){r=e.extend(true,{},s)};t.debug=function(){console.log(r);console.log(c)};var d=function(t,n,i){if(n==true){if(!i){var i=0}else{var s=/\[report=([0-9]+)([A-Fa-f0-9]{10})\]/;var o=String(i).match(s);if(o){var i=o[1]}}if(isNaN(parseInt(i,10))){var u=0}else{var u=parseInt(i,10)-1}switch(t){case"job":r[t]={last:u,items:{last:0}};break;case"duel":r[t]={last:u};break;case"chest":r[t]={};break;case"all":r={ver:4};d("job",true,u+1);d("duel",true,u+1);d("chest",true,u+1);break}}else{var a=e('<div><h2>Do you really want to reset the ReportAnalyser statistics?</h2><span style="font-size:12px"><br />Give Report-Link of first Report which should be read after Reset</span></div>');var f=(new west.gui.Textfield("twdb_analyser_last")).setSize(40);f.setLabel("Report-Link:");a.append(f.getMainDiv());var l=new west.gui.Checkbox("or use all reports&nbsp;&nbsp;");var c=new west.gui.Checkbox("or use only future reports");l.setCallback(function(e){if(e){c.setSelected(false);f.setValue("")}});c.setCallback(function(e){if(e){l.setSelected(false);f.setValue("")}});e(f.getMainDiv()).find("span").css("font-size","12px");e(f.getMainDiv()).find("input").keyup(function(){l.setSelected(false);c.setSelected(false)});a.append(e('<div style="display:block;" />').append(l.getMainDiv()).append(c.getMainDiv()));var h=new west.gui.Dialog("ReportAnalyser - Reset",a);h.addButton("ok",function(){if(l.isSelected()){d(t,true)}else if(c.isSelected()){d(t,true,r[t].last+1)}else{d(t,true,f.getValue())}h.hide();MessagesWindow.open("analyser-"+t)});h.addButton("cancel");h.show()}};var v=function(e){var t={};t.add=function(e,t){var n=false;for(i=0;i<t.msg.effects.length;i+=1){var s=t.msg.effects[i];if(s.type=="lottery"||s.type=="content"){if(!isDefined(r.chest[e])){r.chest[e]={count:0,items:{}}}var o=r.chest[e];if(!n){o.count++;n=true}s.items.each(function(e){if(!isDefined(o.items[e.item_id])){o.items[e.item_id]=0}o.items[e.item_id]+=e.count})}else if(s.type=="learn_recipe")TWDB.ClothCalc.recipes[s.recipe]=1}Cache.save("statistic",r)};t.show=function(){if(!MessagesWindow.window){return}var t=e(MessagesWindow.window.getContentPane()).find(".messages-analyser-chest");MessagesWindow.window.showLoader();t.children().remove();var n=new west.gui.Scrollpane;e(n.getMainDiv()).css("height","385px");t.append(n.getMainDiv());for(var i in r.chest){var s=r.chest[i];var o=(new tw2widget.Item(ItemManager.get(i),"item_inventory")).setCount(s.count);o.getImgEl().addClass("item_inventory_img");n.appendContent(e('<div style="float:left;position:relative;height:61px;width:61px;" />').append(o.getMainDiv()));var u=0;var a=e('<div style="float:left;position:relative;width:610px;" />');for(var f in s.items){u++;var o=(new tw2widget.Item(ItemManager.get(f),"item_inventory")).setCount(s.items[f]);o.getImgEl().addClass("item_inventory_img");a.append(o.getMainDiv())}n.appendContent('<div style="float:left;position:relative;width:10px;height:'+String(Math.ceil(u/10)*61)+'px;background: url(/images/window/report/devider_report.png) repeat-y;" />').appendContent(a).appendContent('<div style="clear:both;position:relative;height:10px;display:block;background: url(/images/window/dailyactivity/wood_devider_horiz.png) repeat-x;" />')}MessagesWindow.window.hideLoader()};return t}(e);var m=function(e){if(o){return}o=true;u=[];g(e)};var g=function(e,t){if(!t){t=1}f=t;Ajax.remoteCall("reports","get_reports",{page:t,folder:e},function(t){y(e,t)})};var y=function(e,t){var n=true;if(typeof t.reports!=="object"){t.reports=[];n=false}if(typeof t.page=="undefined"||f!==t.page){t.reports=[];n=false}for(var i=0;i<t.reports.length;i++){var s=t.reports[i];if(s.report_id<=r[e].last){n=false;break}u.push({id:s.report_id,hash:s.hash,type:e})}l.bar.setMaxValue(u.length);if(n){window.setTimeout(function(){g(e,f+1)},Timer.getTimeout())}else{b(e)}};var b=function(e){if(u.length>0){l.bar.setValue(l.bar.getValue()+1);w(u.pop())}else{Cache.save("statistic",r);o=false;T(e,true)}};var w=function(t){e.post("game.php?window=reports&mode=show_report",{flash:null,hash:t.hash,report_id:t.id},function(e){E(t.type,e)},"json")};var E=function(e,t){if(!t||!t.report_id||!t.publishHash){(new UserMessage("empty Server Response",UserMessage.TYPE_ERROR)).show();return false}if(typeof t.page!=="string"||typeof t.title!=="string"||typeof t.js!=="string"){a.push(t.report_id)}else{switch(e){case"job":x(t);break;case"duel":S(t);break}r[e].last=t.report_id}window.setTimeout(function(){b(e)},Timer.getTimeout())};var S=function(e){};var x=function(n){try{data={id:null,hash:null,job:null,motivation:null,duration:null,wage:null,bond:null,experience:null,injury:0,killed:false,date_received:null,items:{}};data.id=n.report_id;data.hash=n.publishHash;var i=Jobs.getJobByName(n.title.slice(n.title.indexOf(":")+1));if(!i){a.push(data.id);return false}data.job=i.id;data.date_received=n.date_received;var s=e(n.page);s.find(".rp_row_jobdata").each(function(t){var n=e.trim(e(this).children("span:last-child").html());n=n.split("&nbsp;").join(" ");switch(t){case 0:data.motivation=parseInt(n.slice(0,n.indexOf(" ")),10);break;case 1:var r=parseFloat(n);data.duration=r==1?3600:r==10?600:r==15?15:null;if(!data.duration)Error.report({message:"Unrecognized time on report:"+n},"Job-Analyser");break;case 2:data.wage=parseInt(n.slice(n.indexOf(" ")+1),10);break;case 3:data.bond=parseInt(n,10);break;case 4:data.experience=parseInt(n.slice(0,n.indexOf(" ")),10);break}});s.find(".rp_hurtmessage_text").each(function(){var t=new RegExp("[0-9]+");data.injury=Number(t.exec(e(this).html()))});s.find(".rp_row_killmessage").each(function(){data.killed=true});var s=n.js.split(";");e(s).each(function(){var e=new RegExp(/\s*ItemManager\.get\(([0-9]+)\)\s*\)\.setCount\(([0-9]+)\)/m);var t=e.exec(this);if(t){data.items[Number(t[1])]=Number(t[2])}});if(!r.job[data.job]){r.job[data.job]={count:0,products:{}}}var o=r.job[data.job];o.count++;if(!o[data.motivation]){o[data.motivation]={count:0,duration:0,wage:0,bond:0,experience:0,injury:{},killed:0,items:{},extraitems:{}}}var u=o[data.motivation];if(!isDefined(u.duration)){u.duration=0}u.count++;u.duration+=data.duration;u.wage+=data.wage;u.bond+=data.bond;u.experience+=data.experience;if(!u.injury[data.injury]){u.injury[data.injury]=0}u.injury[data.injury]++;if(data.killed){u.killed++}for(var f in data.items){var l=Number(f);var c=138e3;if(l===c){if(!isDefined(r.extra)){r.extra={count:0};t.extra=true}r.extra.count++;r.extra[r.extra.count]=data}var h=data.items[l];var p=ItemManager.get(l);if(Jobs.isProduct(l)!==-1){if(!o.products[l]){o.products[l]={last:0}}var s=o.products[l];for(var d=0;d<h;d++){var v=o.count-s.last;s.last=o.count;if(!s[v]){s[v]=0}s[v]++}}else if(p.price==0){if(!u.extraitems[l]){u.extraitems[l]=0}u.extraitems[l]++}else{luck=true;if(!u.items[l]){u.items[l]=0}u.items[l]++}}}catch(m){a.push(data.id);return false}};var T=function(t,n){if(!MessagesWindow.window){return}l.window=e(MessagesWindow.window.getContentPane()).find(".messages-analyser-"+t);if(typeof n=="undefined"){MessagesWindow.window.showLoader();l.bar=new west.gui.Progressbar(0,u.length);l.window.children().remove();l.window.append(l.bar.getMainDiv());m(t)}else{switch(t){case"job":var r=k();break;case"duel":var r=showDuels();break}l.window.children().remove();l.window.append(r);N();C();N();MessagesWindow.window.hideLoader()}};var N=function(t){try{if(typeof t!="undefined"){if(c.type==t){c.ord*=-1}else{c.ord=1;c.type=t}}else{var t=c.type}var n=c.ord;var r=function(r,i){var s=e(r).find(".cell_"+t).html();var o=e(i).find(".cell_"+t).html();if(Number(s)==s){return s*1>o*1?n:-n}else{return s>o?n:-n}};l.rows.sort(r);for(var i=0;i<l.rows.length;i++){l.bodyscroll.appendContent(l.rows[i])}}catch(s){Error.report(s,"Analyser sort")}};var C=function(){switch(c.avg){case"avg":c.avg="sum";break;case"sum":c.avg="avg";break}e(l.window).find("div.row div").each(function(t){var n=e(this).data(String(c.avg));var r=e(this).data(String(c.avg)+"-t");e(this).html(n).attr("title",r)})};var k=function(){l.window.addClass("view-rewards");c={ord:1,type:0,avg:"avg"};var t=e('<div class="fancytable">'+'<div class="_bg tw2gui_bg_tl"></div>'+'<div class="_bg tw2gui_bg_tr"></div>'+'<div class="_bg tw2gui_bg_bl"></div>'+'<div class="_bg tw2gui_bg_br"></div>'+'<div class="trows">'+'<div class="thead statics">'+'<div class="row row_head">'+'<div class="cell_0 view-rewards view-items" style="width:91px; text-align:center;">'+'<span title="Name" style="cursor:pointer, margin-bottom:3px;">'+'<img src="'+Images.iconName+'" />'+"</span>"+"</div>"+'<div class="cell_1 view-rewards view-items" style="width:50px; text-align:center;">'+'<span title="Count">'+'<img src="'+Images.iconCount+'" />'+"</span>"+"</div>"+'<div class="cell_2 view-rewards view-items" style="width:50px; text-align:center;">'+'<span title="Duration">'+'<img src="'+Images.iconClock+'" />'+"</span>"+"</div>"+'<div class="cell_3 view-rewards" style="width:50px; text-align:center;">'+'<span title="Experience">'+'<img src="'+Images.iconExperience+'" />'+"</span>"+"</div>"+'<div class="cell_4 view-rewards" style="width:50px; text-align:center;">'+'<span title="Wage">'+'<img src="'+Images.iconDollar+'" />'+"</span>"+"</div>"+'<div class="cell_5 view-rewards" style="width:50px; text-align:center;">'+'<span title="Bond">'+'<img src="'+Images.iconUpb+'" />'+"</span>"+"</div>"+'<div class="cell_6 view-rewards" style="width:50px; text-align:center;">'+'<span title="Motivation">'+'<img src="'+Images.iconMoti+'" />'+"</span>"+"</div>"+'<div class="cell_7 view-rewards" style="width:50px; text-align:center;">'+'<span title="Danger">'+'<img src="'+Images.iconDanger+'" />'+"</span>"+"</div>"+'<div class="cell_8 view-rewards" style="width:50px; text-align:center;">'+'<span title="killed">'+'<img src="'+Images.iconKilled+'" />'+"</span>"+"</div>"+'<div class="cell_9 view-rewards" style="width:50px; text-align:center;">'+'<span title="Products">'+'<img src="'+Images.iconYield+'" />'+"</span>"+"</div>"+'<div class="cell_9 view-items" style="width:63px; text-align:center;">'+'<span title="Products">'+'<img src="'+Images.iconYield+'" />'+"</span>"+"</div>"+'<div class="cell_10 view-rewards" style="width:50px; text-align:center;">'+'<span title="Item">'+'<img src="'+Images.iconItem+'" />'+"</span>"+"</div>"+'<div class="cell_10 view-items" style="width:378px; text-align:center;">'+'<span title="Item">'+'<img src="'+Images.iconItem+'" />'+"</span>"+"</div>"+'<div class="cell_11 view-rewards" style="width:41px; text-align:center;">'+'<span title="Luck">'+'<img src="'+Images.iconLuck+'" />'+"</span>"+"</div>"+'<div class="cell_reset view-rewards view-items" style="width:20px; text-align:right;">'+'<span title="Reset">'+'<img src="'+Images.iconReset+'" />'+"</span>"+"</div>"+"</div>"+"</div>"+'<div class="tbody">'+'<div class="_bg tw2gui_bg_l"></div>'+'<div class="_bg tw2gui_bg_r"></div>'+"</div>"+'<div class="tfoot statics">'+'<div class="row row_foot"></div>'+"</div>"+"</div>"+"</div>");t.find(".row_head > div").each(function(){var t=e(this).attr("class").match(/cell_(\d+|reset)/)[1],n=e(this).find("img");if(t=="reset"){e(this).click(function(){d("job")})}else{e(this).click(function(e){return function(){N(e)}}(t*1))}});t.find(".row_head").find("img").css("cursor","pointer");var n=0;var i={jobs:0,count:0,duration:0,experience:0,wage:0,bond:0,motivation:0,injury:0,killed:0,products:0,items:0,luck:0};var s=r.job;var o=e();l.rows=[];for(var u in s){var a=Jobs.getJobById(u);if(!a){continue}var f={count:0,duration:0,experience:0,wage:0,bond:0,motivation:0,injury:0,killed:0,products:0,items:0,luck:0,all_products:{},all_items:{}};var h=s[u];f.count=h.count;var p=0;for(var n=0;n<a.randomyields.length;n++){p+=a.randomyields[n]}if(typeof a.yields.length=="undefined"){for(var v in a.yields){p+=a.yields[v].prop}}for(var v in h.products){for(var m in h.products[v]){if(m=="last"){continue}var g=ItemManager.get(v);f.products+=Number(h.products[v][m]);f.luck+=Number(g.price*h.products[v][m]);f.all_products[v]=(f.all_products[v]||0)+h.products[v][m]}}for(var y in h){if(y=="count"||y=="products"){continue}var m=h[y];f.motivation+=y*m.count;f.bond+=m.bond;f.duration+=m.duration||0;f.experience+=m.experience;for(var b in m.injury){f.injury+=b*m.injury[b]}for(var v in m.items){var g=ItemManager.get(v);f.items+=Number(m.items[v]);f.luck+=Number(g.price*m.items[v]);f.all_items[v]=(f.all_items[v]||0)+m.items[v]}f.killed+=m.killed;f.wage+=m.wage}var w=e('<div class="row row_'+n+'" />');var m=e('<div class="cell_0 view-rewards view-items" style="width:91px; text-align:left;cursor:pointer;font-size:11px;" ></div>');m.data("sum",a.name);m.data("sum-t",a.name);m.data("avg",a.name);m.data("avg-t",a.name);w.append(m);i.jobs++;var m=e('<div class="cell_1 view-rewards view-items" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.count);m.data("sum-t",f.count);m.data("avg",f.count);m.data("avg-t",f.count);w.append(m);i.count+=f.count;var m=e('<div class="cell_2 view-rewards view-items" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",(f.duration/3600).round(2));m.data("sum-t",String((f.duration/3600).round(2))+" hours");m.data("avg",(f.duration/(3600*f.count)).round(2));m.data("avg-t","&Oslash; "+String((f.duration/(3600*f.count)).round(2))+" hours");w.append(m);i.duration+=f.duration;var m=e('<div class="cell_3 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.experience);m.data("sum-t",String(f.experience));m.data("avg",(f.experience/f.count).round(2));m.data("avg-t","&Oslash; "+String((f.experience/f.count).round(2)));w.append(m);i.experience+=f.experience;var m=e('<div class="cell_4 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.wage);m.data("sum-t","$"+String(f.wage));m.data("avg",(f.wage/f.count).round(2));m.data("avg-t","&Oslash; $"+String((f.wage/f.count).round(2)));w.append(m);i.wage+=f.wage;var m=e('<div class="cell_5 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.bond);m.data("sum-t",String(f.bond));m.data("avg",(f.bond/f.count*100).round(2));m.data("avg-t","&Oslash; "+String((f.bond/f.count*100).round(2))+"%");w.append(m);i.bond+=f.bond;var m=e('<div class="cell_6 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.motivation);m.data("sum-t",String(f.motivation)+"%");m.data("avg",(f.motivation/f.count).round(2));m.data("avg-t","&Oslash; "+String((f.motivation/f.count).round(2))+"%");w.append(m);i.motivation+=f.motivation;var m=e('<div class="cell_7 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.injury);m.data("sum-t",String(f.injury));m.data("avg",(f.injury/f.count).round(2));m.data("avg-t","&Oslash; "+String((f.injury/f.count).round(2)));w.append(m);i.injury+=f.injury;var m=e('<div class="cell_8 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.killed);m.data("sum-t",String(f.killed));m.data("avg",(f.killed/f.count*100).round(2));m.data("avg-t","&Oslash; "+String((f.killed/f.count*100).round(2))+"%");w.append(m);i.killed+=f.killed;var m=e('<div class="cell_9 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.products);m.data("sum-t",String(f.products));m.data("avg",(f.products/f.count*100).round(2));m.data("avg-t","&Oslash; "+String((f.products/f.count*100).round(2))+"% ["+p*100+"%]");w.append(m);i.products+=f.products;var m=e('<div class="cell_9 view-items" style="width:63px; text-align:center;cursor:pointer;" ></div>');var E=e.map(f.all_products,function(e,t){return(new tw2widget.Item(ItemManager.get(t))).setCount(e).getMainDiv()});m.data("sum",E);m.data("avg",E);w.append(m);var m=e('<div class="cell_10 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.items);m.data("sum-t",String(f.items));m.data("avg",(f.items/f.count*100).round(2));m.data("avg-t","&Oslash; "+String((f.items/f.count*100).round(2))+"%");w.append(m);i.items+=f.items;var m=e('<div class="cell_10 view-items" style="width:390px; text-align:center;cursor:pointer;" ></div>');var E=e.map(f.all_items,function(e,t){return(new tw2widget.Item(ItemManager.get(t))).setCount(e).getMainDiv()});m.data("sum",E);m.data("avg",E);w.append(m);var m=e('<div class="cell_11 view-rewards" style="width:50px; text-align:center;cursor:pointer;" ></div>');m.data("sum",f.luck);m.data("sum-t","$"+String(f.luck));m.data("avg",(f.luck/f.count).round(2));m.data("avg-t","&Oslash; $"+String((f.luck/f.count).round(2)));w.append(m);i.luck+=f.luck;l.rows.push(w);w.click(function(){L(e(this).children(".cell_0").html())});n++}l.bodyscroll=new west.gui.Scrollpane;e(l.bodyscroll.getMainDiv()).css("height","300px");t.find(".tbody").append(l.bodyscroll.getMainDiv());l.footer=t.find(".row_foot");var m=e('<div class="cell_0" style="width:71px; text-align:center;" ></div>');m.data("sum",i.jobs);m.data("sum-t",i.jobs+" Jobs");m.data("avg",i.jobs);m.data("avg-t",i.jobs+" Jobs");l.footer.append(m);var m=e('<div class="cell_0 view-rewards view-items" style="width:87px; text-align:center;cursor:pointer;color:#444;" ></div>');m.mouseenter(function(){e(this).css("color","#888")}).mouseleave(function(){e(this).css("color","#444")});m.click(function(){C()});m.data("sum","&sum;");m.data("sum-t","switch to &Oslash;");m.data("avg","&Oslash;");m.data("avg-t","switch to &sum;");l.footer.append(m);var m=e('<div class="cell_1 view-rewards view-items" style="width:50px; text-align:center;" ></div>');m.data("sum",i.count);m.data("sum-t",i.count);m.data("avg",i.count);m.data("avg-t",i.count);l.footer.append(m);var m=e('<div class="cell_2 view-rewards view-items" style="width:50px; text-align:center;" ></div>');m.data("sum",(i.duration/3600).round(2));m.data("sum-t",String((i.duration/3600).round(2))+"hours");m.data("avg",(i.duration/(3600*i.count)).round(2));m.data("avg-t","&Oslash; "+String((i.duration/(3600*i.count)).round(2))+"hours");l.footer.append(m);var m=e('<div class="cell_3 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.experience);m.data("sum-t",String(i.experience));m.data("avg",(i.experience/i.count).round(2));m.data("avg-t","&Oslash; "+String((i.experience/i.count).round(2)));l.footer.append(m);var m=e('<div class="cell_4 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.wage);m.data("sum-t","$"+String(i.wage));m.data("avg",(i.wage/i.count).round(2));m.data("avg-t","&Oslash; $"+String((i.wage/i.count).round(2)));l.footer.append(m);var m=e('<div class="cell_5 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.bond);m.data("sum-t",String(i.bond));m.data("avg",(i.bond/i.count*100).round(2));m.data("avg-t","&Oslash; "+String((i.bond/i.count*100).round(2))+"%");l.footer.append(m);var m=e('<div class="cell_6 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.motivation);m.data("sum-t",String(i.motivation)+"%");m.data("avg",(i.motivation/i.count).round(2));m.data("avg-t","&Oslash; "+String((i.motivation/i.count).round(2))+"%");l.footer.append(m);var m=e('<div class="cell_7 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.injury);m.data("sum-t",String(i.injury));m.data("avg",(i.injury/i.count).round(2));m.data("avg-t","&Oslash; "+String((i.injury/i.count).round(2)));l.footer.append(m);var m=e('<div class="cell_8 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.killed);m.data("sum-t",String(i.killed));m.data("avg",(i.killed/i.count*100).round(2));m.data("avg-t","&Oslash; "+String((i.killed/i.count*100).round(2))+"%");l.footer.append(m);var m=e('<div class="cell_9 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.products);m.data("sum-t",String(i.products));m.data("avg",(i.products/i.count*100).round(2));m.data("avg-t","&Oslash; "+String((i.products/i.count*100).round(2))+"%");l.footer.append(m);var m=e('<div class="cell_9 view-items" style="width:63px; text-align:center;" ></div>');m.data("sum",i.products);m.data("sum-t",String(i.products));m.data("avg",(i.products/i.count*100).round(2));m.data("avg-t","&Oslash; "+String((i.products/i.count*100).round(2))+"%");l.footer.append(m);var m=e('<div class="cell_10 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.items);m.data("sum-t",String(i.items));m.data("avg",(i.items/i.count*100).round(2));m.data("avg-t","&Oslash; "+String((i.items/i.count*100).round(2))+"%");l.footer.append(m);var m=e('<div class="cell_10 view-items" style="width:390px; text-align:center;" ></div>');m.data("sum",i.items);m.data("sum-t",String(i.items));m.data("avg",(i.items/i.count*100).round(2));m.data("avg-t","&Oslash; "+String((i.items/i.count*100).round(2))+"%");l.footer.append(m);var m=e('<div class="cell_11 view-rewards" style="width:50px; text-align:center;" ></div>');m.data("sum",i.luck);m.data("sum-t","$"+String(i.luck));m.data("avg",(i.luck/i.count).round(2));m.data("avg-t","&Oslash; $"+String((i.luck/i.count).round(2)));l.footer.append(m);var o=e('<div style="margin: 0px 6px 0px 6px;width:680px;" />').append(e('<a href="#">Switch between rewards and found items</a>').css({marginTop:"-8px",display:"block",textAlign:"center"}).click(function(){e(".messages-analyser-job").toggleClass("view-rewards view-items")})).append(t);return o};var L=function(e){};t.getExtra=function(){if(isDefined(r.extra)){return r.extra}return null};return t}($);Debugger.Analyser=Analyser;var Notes=function(e){var t={};var n=null;var r={};var i=function(){if(r.ready){return}if(r.ready){return}if(Settings.get("notes",true)){GameInject.addTabOnMessagesWindow("Notes","notes",function(){s()})}r.ready=true};r=Loader.add("Notes","tw-db Notes",i,{Cache:true,Settings:true});var s=function(){if(!w.MessagesWindow.window){return}n=e(w.MessagesWindow.window.getContentPane()).find(".messages-notes");n.css("width","680px").css("margin","0 auto").css("position","relative").css("top","0");a(Cache.load("notes"))};var o=function(e){Cache.save("notes",e);(new UserMessage("saved successful",UserMessage.TYPE_SUCCESS)).show()};var u=function(t){n.children().remove();w.MessagesWindow.window.showLoader();var r=(new west.gui.Textarea).setWidth(660).setHeight(300).setContent(t);n.append(e('<div style="margin-left:8px" />').append((new west.gui.Bbcodes(r)).getMainDiv())).append(r.getMainDiv()).append(e('<div style="margin-left:8px" />').append((new west.gui.Button("Save".escapeHTML(),function(){o(r.getContent());a(r.getContent())})).getMainDiv()).append((new west.gui.Button("Preview".escapeHTML(),function(){a(r.getContent())})).getMainDiv()));w.MessagesWindow.window.hideLoader()};var a=function(t){n.children().remove();var r=new west.gui.Scrollpane;e(r.getMainDiv()).css("height","324px");e(r.getMainDiv()).find(".tw2gui_scrollpane_clipper_contentpane").addClass("selectable");n.append(e('<div style="margin:8px" />').append(r.getMainDiv())).append(e('<div style="margin-left:8px" />').append((new west.gui.Button("Save".escapeHTML(),function(){o(t)})).getMainDiv()).append((new west.gui.Button("Edit".escapeHTML(),function(){u(t)})).getMainDiv()));if(t){w.MessagesWindow.window.showLoader();Ajax.remoteCall("settings","get_parsed_text",{text:t},function(e){r.appendContent(w.Game.TextHandler.parse(e.parsed_text));w.MessagesWindow.window.hideLoader()})}};return t}($);Debugger.Notes=Notes;var Map=function(e){var t={};var n=false;var r=181;var i=79;var s=0;var o=0;var u={};var a={};var f=null;var l=null;var c={};var h=function(){if(c.ready){return}if(Settings.get("showscrollto",true)){d()}Ajax.get("map","get_minimap",{},function(e){if(e.error){c.failed=true;return(new UserMessage(e.msg)).show()}u=e.job_groups;c.ready=true})};c=Loader.add("Map","tw-db Map",h,{Settings:true});t.getNearestJob=function(e){var n=JobList.getJobById(e);var r=u[n.groupid];if(!r){return[]}var i=[];var s=t.getLastPosition();for(var o=0;o<r.length;o++){var a=r[o][0]-s.x;var f=r[o][1]-s.y;var l=Math.sqrt(a*a+f*f);var c=window.Map.calcWayTime({x:r[o][0],y:r[o][1]},s);var h=Number(Math.atan(f/a)*180/Math.PI).round(0);if(a<0){h-=180}i.push({dist:l,time:c,x:r[o][0],y:r[o][1],angle:h})}var p=function(e,t){return e.dist*1>t.dist*1?1:-1};i.sort(p);return i};t.getLastPosition=function(){var e={x:Character.position.x,y:Character.position.y};var t=TaskQueue.queue;for(var n=0;n<t.length;n++){var r=t[n].wayData;if(r.x){e.x=r.x;e.y=r.y}}return e};t.setMinimapJob=function(t){if(f){window.clearInterval(l);window.clearInterval(f)}var n=function(t){if(!MinimapWindow.window||e(MinimapWindow.window.divMain).find(".tw2gui_jobsearch_string").length==0||!e(MinimapWindow.window.divMain).find(".tw2gui_jobsearch_string").is(":visible")){return}window.clearInterval(f);window.clearInterval(l);f=null;l=null;MinimapWindow.resetSearchContext();e("input.tw2gui_jobsearch_string",MinimapWindow.DOM).val(t).keyup()};l=setInterval(function(){window.clearInterval(f);window.clearInterval(l);f=null;l=null},3e5);f=setInterval(function(){n(t)},200)};var p=function(e){var n=false;var u=0;var e=[];var a=s;var f=o;for(var a=s;a<=r;a++){for(var f=o;f<=i;f++){u++;e.push([a,f]);if(u>299){n=true;break}}if(n){break}o=0}s=a;o=f+1;if(e.length>0){window.Map.Data.Loader.load(e,function(){setTimeout(function(){t.loadMap()},Timer.getTimeout())})}};t.loadMap=function(){p()};var d=function(){var t="div#mmap_twdb_coords {position: absolute; bottom: 35px; left: 1px; display: block;}\n"+"div#mmap_twdb_coords > img {cursor:pointer; opacity:0.5; position:relative;}";TWDB.Util.addCss(t,"minimap");var n=function(){var t=e('<div id="mmap_twdb_coords" />');var n=new west.gui.Textfield;var r=new west.gui.Textfield;var i="";var s="";n.setWidth(45);r.setWidth(45).setMaxLength(5);var o=function(){var e=Number(n.getValue());var t=Number(r.getValue());window.Map.center(e,t);n.setValue("");r.setValue("")};e(n.getMainDiv()).find("input").keyup(function(t){window.setTimeout(function(){var u;if(t.ctrlKey&&t.keyCode===86&&!t.altKey){u=(new RegExp("^([0-9]{1,5})([^0-9]+)([0-9]{1,5})$")).exec(e.trim(n.getValue()));if(u){n.setValue(u[1]);r.setValue(u[3]);e(r.getMainDiv()).find("input").focus();i=n.getValue();s=r.getValue();return}u=(new RegExp("^([0-9]{1,5})$")).exec(e.trim(n.getValue()));if(u){n.setValue(u[1]);e(r.getMainDiv()).find("input").focus();i=n.getValue();return}n.setValue(i)}if(t.keyCode===13){return o()}if(String(e.trim(n.getValue())).length===0){i=n.getValue();return}u=(new RegExp("^([0-9]{1,5})$")).exec(e.trim(n.getValue()));if(u){n.setValue(u[1]);if(String(u[1]).length===5){e(r.getMainDiv()).find("input").focus()}i=n.getValue();return}n.setValue(i)},100)});e(r.getMainDiv()).find("input").keyup(function(t){window.setTimeout(function(){if(t.ctrlKey&&t.keyCode==86&&!t.altKey){var n=(new RegExp("^([0-9]{1,5})$")).exec(e.trim(r.getValue()));if(n){r.setValue(n[1]);e(r.getMainDiv()).find("input").focus();s=r.getValue();return}r.setValue(s)}if(t.keyCode==13){o();return}if(String(e.trim(r.getValue())).length==0){s=r.getValue();return}var n=(new RegExp("^([0-9]{1,5})$")).exec(e.trim(r.getValue()));if(n){r.setValue(n[1]);if(String(n[1]).length==5){e(r.getMainDiv()).find("input").focus()}s=r.getValue();return}r.setValue(s)},100)});var u=(new west.gui.Button("Ok",function(){o()},null,null,"Scroll the map to the given coordinates")).setWidth("48");var a=e('<img title="Show map coordinates" src="'+Images.iconCount+'" />').click(function(){if(e(this).css("opacity")===1){e(this).css("opacity","0.5");window.Map.hideCoords()}else{e(this).css("opacity","1");window.Map.showCoords()}});t.append(a,n.getMainDiv(),"<span>|</span>",r.getMainDiv(),e(u.getMainDiv()).css("top","6px"));e(".minimap-right",MinimapWindow.window.divMain).append(t)};GameInject.injectMinimap(function(){n()})};return t}($);_base.Map=Map;Debugger.Map=Map;var BonusJobs=function(e){var t={},n,r={},i={gold:false,silver:false},s=function(){if(r.ready){return}if(!Settings.get("showbonusjobs",true)){r.ready=true;return}var e,t,s,a,f,l,c;n=Cache.load("bonusjobs")||{};i=Cache.load("bonusdisplay")||{gold:false,silver:false};for(e in n){if(!n.hasOwnProperty(e)){continue}t=n[e];s=0;for(a in t){if(!t.hasOwnProperty(a)){continue}if(t[a].gold){s++;continue}var f=new Date;var l=new Date;l.setHours(2);l.setMinutes(15);l.setSeconds(0);l.setMilliseconds(0);var c=l.getTime();if(f.getHours()<2||f.getHours()==2&&f.getMinutes()<15){c-=24*60*60*1e3}if(t[a].time>c){s++}else{delete t[a]}}if(s==0){delete n[e]}}u();o();r.ready=true};r=Loader.add("BonusJobs","tw-db BonusJobs",s,{Settings:true,Cache:true,Jobs:true});var o=function(){var e=function(e){var t=window.Map.Helper.getPosition(e.parent);if(!isDefined(t)||!isDefined(t.x)||!isDefined(t.y)){return}if(!isDefined(window.Map.JobHandler.Featured[t.x+"-"+t.y])){if(isDefined(n[t.x+"-"+t.y])){delete n[t.x+"-"+t.y];Cache.save("bonusjobs",n)}return}var r=window.Map.JobHandler.Featured[t.x+"-"+t.y],i;n[t.x+"-"+t.y]={};for(i in r){if(!r.hasOwnProperty(i)){continue}n[t.x+"-"+t.y][i]=r[i];n[t.x+"-"+t.y][i]["time"]=(new Date).getTime()}Cache.save("bonusjobs",n)};GameInject.injectRadialmenu(function(t){e(t)})};var u=function(){var t="div#mmap_twdb_bonusjobs {position:absolute; top:40px; right:10px;}\n"+'div#mmap_twdb_bonusjobs > input[type="checkbox"] {margin-left:6px; cursor:pointer;}\n'+"div#mmap_twdb_bonusjobs > div {position:relative; display:inline-block; height:9px; width:9px; margin:1px;}\n"+"div#mmap_twdb_bonusjobs > img {margin-left:3px; cursor:pointer; position:relative; display:inline-block; height:16px; width:16px; top:-4px;}";TWDB.Util.addCss(t,"minimap");var n=function(){var t=e('<div id="mmap_twdb_bonusjobs" />').append(e('<input title="Show Gold-Bonus Jobs" type="checkbox" '+(i.gold?'checked="checked"':"")+" />").change(function(){i.gold=e(this).attr("checked");a()})).append('<div title="Show Gold-Bonus Jobs" style="background-color:yellow; border:1px solid red;" />').append(e('<input title="Show Silver-Bonus Jobs" type="checkbox" '+(i.silver?'checked="checked"':"")+" />").change(function(){i.silver=e(this).attr("checked");a()})).append('<div title="Show Silver-Bonus Jobs" style="background-color:white; border:1px solid black;" />').append(e('<img title="Bonus-Jobs Export" src="'+Images.iconExport+'" />').click(function(){f()})).append(e('<img title="Bonus-Jobs Import" src="'+Images.iconImport+'" />').click(function(){l()})).append(e('<img title="Bonus-Jobs Reset" src="'+Images.iconReset2+'" />').click(function(){c()}));e(MinimapWindow.window.divMain).find(".minimap-right").append(t);a()};GameInject.injectMinimap(function(){n()})};var a=function(){Cache.save("bonusdisplay",i);e("#minimap_worldmap > div.TWDBbonusjob",MinimapWindow.window.divMain).remove();var t=function(t,n,r,i,s){var o=.00513;var u=parseInt(t*o,10)-3;var a=parseInt(n*o,10)+2;var f="";if(i>1){f="-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);-o-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);"}var l=e('<div class="TWDBbonusjob" style="z-index:7;position:absolute;display:block;width:4px;height:4px;background-color:'+(r?"yellow":"white")+";left:"+u+"px;top:"+a+"px;"+f+"border:1px solid "+(r?"red":"black")+';" />').click(function(e,t){return function(){window.Map.center(e,t)}}(t,n)).addMousePopup('<div style="min-width:60px;text-align:center">'+s.join('<div class="marker_popup_divider"></div>')+"</div>");e(MinimapWindow.window.divMain).find("#minimap_worldmap").append(l)};var r=n;for(key in r){if(!r.hasOwnProperty(key)){continue}var s=r[key];var o=false;var u=0;var a=[];for(var f in s){if(!s.hasOwnProperty(f)){continue}if(s[f].gold){if(!i.gold){continue}o=true;u++}if(s[f].silver){if(!i.silver){continue}u++}var l=s[f].x;var c=s[f].y;job=JobList.getJobById(s[f].job_id);a.push(Jobs.getPopup(s[f].job_id,s[f].gold?"gold":"silver"))}if(u>0){t(l,c,o,u,a)}}};var f=function(){var t=[];for(var r in n){if(!n.hasOwnProperty(r)){continue}var i=n[r];for(var s in i){if(!i.hasOwnProperty(s)){continue}var o=Jobs.getJobById(s);var u=Math.ceil(i[s].x/6635)+(i[s].y>10176?7:0);t.push({name:o.name,bonus:i[s].gold?"gold":"silver",country:u,x:i[s].x,y:i[s].y,id:s})}}var a=e("<textarea />").css({width:"500px",height:"200px","background-color":"transparent","border-width":"0px"}).click(function(){this.select()});var f="";var l=1;var c=function(e){if(f!==e){f=e;l=1}else{l*=-1}var n=function(e,t){return e[f]>t[f]?l:-1*l};t.sort(n);var r="";var i="";for(var s=0;s<t.length;s++){var o=t[s];if(f=="country"&&i!==o.country){i=o.country;r+="-- ?country "+i+" --"+"\n"}r+=o.name+"; "+o.bonus+"; "+o.x+"-"+o.y+"; "+o.id+"\n"}a.val(r)};c("name");var h=e("<div />").css({width:"500px",height:"22px",position:"relative",display:"block"}).append(e('<img src="'+Images.iconName+'" title=" Sort by name "  style="margin:0px 2px 0px 2px;cursor:pointer;" />').click(function(){c("name")})).append(e('<img src="'+Images.iconCount+'" title=" Sort by Country " style="margin:0px 2px 0px 2px;cursor:pointer;" />').click(function(){c("country")}));(new west.gui.Dialog("Bonus-Jobs Export",e("<div />").append(h).append(a))).addButton("ok").show()};var l=function(){var t=e("<textarea />").css({width:"400px",height:"100px"});var r=function(){var r=t.val(),i=r.split(/[\n,\r,\r\n]/),s,o,u,f,l,c;for(s=0;s<i.length;s++){o=i[s].split(";",4);if(o.length!==4||!e.isNumeric(o[3])||!Jobs.getJobById(Number(o[3]))){continue}u=String(o[2]).split("-",2);if(u.length!==2||!e.isNumeric(u[0])||!e.isNumeric(u[1])){continue}f=Number(o[3]);l={gold:e.trim(o[1])=="gold"?true:false,group_id:Jobs.getJobById(f).groupid,job_id:f,silver:e.trim(o[1])=="gold"?false:true,x:Number(u[0]),y:Number(u[1]),time:(new Date).getTime()};c=Number(u[0])+"-"+Number(u[1]);if(!isDefined(n[c])){n[c]={}}n[c][f]=l}Cache.save("bonusjobs",n);a()};(new west.gui.Dialog("Bonus-Jobs Import",t)).addButton("ok",r).addButton("cancel").show()};var c=function(e){try{if(e){for(var t in n){if(!n.hasOwnProperty(t)){continue}var r=n[t];var i=0;for(var s in r){if(!r.hasOwnProperty(s)){continue}if(e=="gold"&&r[s].gold){i++;continue}if(e=="silver"&&r[s].silver){i++;continue}delete r[s]}if(i==0){delete n[t]}}Cache.save("bonusjobs",n);a();(new UserMessage("Bonus-Jobs Reset",UserMessage.TYPE_SUCCESS)).show()}else{var o="tw-db Bonus-Jobs Reset";var u='<div class="txcenter">Bonus-Jobs Reset</div>';(new west.gui.Dialog(o,u,west.gui.Dialog.SYS_QUESTION)).addButton("All",function(){c("all")}).addButton("Gold jobs",function(){c("silver")}).addButton("Silver jobs",function(){c("gold")}).addButton("cancel").show()}}catch(f){Error.report(f,"bonusjob reset")}};return t}($);Debugger.BonusJobs=BonusJobs;var Chat=function(e){var t={};var n=false;var i={":/":"sore","=:)":"invader",">:(":"angry",":'(":"cry",":)":"smile",":D":"grin",":(":"frown",";)":"smirk",":P":"tongue",":o":"ohmy",":x":"muted",":|":"silent",">.<":"palm","-.-":"nc","o.O":"oo","O.o":"oo","^_^":"happy",o_O:"oo","x.x":"xx","T.T":"cry","el pollo diablo!":"elpollodiablo","!el pollo diablo":"elpollodiablo_mirror","el pollo diablo?!":"elpollodiablo_front","add me":"sheep.gif","add me!":"sheep_rainbow.gif"};var s=[];var o={};var u=function(){if(o.ready){return}if(Settings.get("chat",true)){GameInject.ChatLayout(function(e){f(e)});GameInject.ChatSend(function(e){a(e)});var e=Cache.load("chathistory");if(typeof e=="object"&&e!==null){if(e.color){e=e.color;Cache.save("chathistory",e)}s=e}if($("div.tw2gui_window.chat.nominimize div.tw2gui_window_buttons_close").click().length>0){ChatWindow.open()}}o.ready=true};o=Loader.add("Chat","tw-db Chat Enhancement",u,{Settings:true,Cache:true});var a=function(e){var t=e.input.val();if(!t){return}var n=function(t){if(e._caps){t=t.toUpperCase()}if(e._bold){t=t.replace(/\*/g,"~");t="*"+t+"*"}return t};if(t.substr(0,1)=="/"){r=new RegExp("^\\/(tell|msg)\\s+([^:]+):(.+)$");v=t.match(r);if(v){if(e._color){t="/tell "+v[2]+":/"+e._color+n(v[3])}else{t="/tell "+v[2]+":"+n(v[3])}}e.input.val(t);return}t=n(t);if(e._color){t="/"+e._color+t}e.input.val(t);return};var f=function(e){var t=e.mainDiv.find(".TWDBchat");if(t.length==0){e.mainDiv.find(".chat_input").find(".cbg").css("left","38px").addClass(".TWDBchat");e._color=null;e._bold=false;e._caps=false;l(e);m(e)}};var l=function(t){var n;var r=e('<span style="padding:3px;display:none;width:160px;position:absolute;bottom:20px;left:-3px;" />');for(var s in i){n=i[s].indexOf(".gif")===-1?i[s]+".png":i[s];r.append(e('<img src="'+Game.cdnURL+"/images/chat/emoticons/"+n+'?1" title="'+s+'" style="cursor:pointer;margin:1px;" />').click(function(e){return function(){t.input.val(t.input.val()+" "+e+" ");t.input.focus();r.hide()}}(s)))}var o=false;t.mainDiv.find(".chat_input").append(e('<div style="position:absolute;width:15px;height:15px;bottom:7px;vertical-align:top;left:23px;cursor:pointer;" />').append(e('<img style="vertical-align:top;" src="'+Images.iconChatSM+'" />')).append(r).hover(function(){o=true;r.show()},function(){o=false;setTimeout(function(){if(!o){r.hide()}},200)}))};var c=function(e){var t=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(t){return String(parseInt(t[1]*9/255+.5,10))+String(parseInt(t[2]*9/255+.5,10))+String(parseInt(t[3]*9/255+.5,10))}else{return"000"}};var h=function(e){return"rgb("+parseInt(e[0]*255/9,10)+","+parseInt(e[1]*255/9,10)+","+parseInt(e[2]*255/9,10)+")"};var p=function(e,t){if(isDefined(t.color)){var n=c(t.color);var r=s.length;for(var i=0;i<r;i++){var o=s.shift();if(o!==n){s.push(o)}}s.push(n);if(s.length>5){s.shift()}Cache.save("chathistory",s);e._color=n}if(t.color===null){e._color=null}if(isDefined(t.bold)){e._bold=t.bold}if(isDefined(t.caps)){e._caps=t.caps}if(e._bold){e.mainDiv.find(".TWDBtext").css("font-weight","bold")}else{e.mainDiv.find(".TWDBtext").css("font-weight","normal")}if(e._caps){e.mainDiv.find(".TWDBtext").html("A")}else{e.mainDiv.find(".TWDBtext").html("a")}if(e._color){e.mainDiv.find(".TWDBcolor").children("div").children("div").css("background-color",h(e._color));if(e._color[1]>=4){e.mainDiv.find(".TWDBtext").css("color","#000")}else{e.mainDiv.find(".TWDBtext").css("color","#fff")}}else{e.mainDiv.find(".TWDBcolor").children("div").children("div").css("background-color","#e0e2e0");e.mainDiv.find(".TWDBtext").css("color","#000")}e.input.focus()};var d=function(t){return e('<div style="position:absolute;display:block;width:15px;height:15px;"/>').append(e('<div style="position:absolute;width:15px;height:1px;top:7px;left:0px;background-color:'+t+';opacity:0.1;" />')).append(e('<div style="position:absolute;width:1px;height:15px;top:0px;left:7px;background-color:'+t+';opacity:0.1;" />')).append(e('<div style="position:absolute;width:15px;height:3px;top:6px;left:0px;background-color:'+t+';opacity:0.33;" />')).append(e('<div style="position:absolute;width:3px;height:15px;top:0px;left:6px;background-color:'+t+';opacity:0.33;" />')).append(e('<div style="position:absolute;width:15px;height:5px;top:5px;left:0px;background-color:'+t+';opacity:0.47;" />')).append(e('<div style="position:absolute;width:5px;height:15px;top:0px;left:5px;background-color:'+t+';opacity:0.47;" />')).append(e('<div style="position:absolute;width:13px;height:9px;top:3px;left:1px;background-color:'+t+';opacity:0.6;" />')).append(e('<div style="position:absolute;width:9px;height:13px;top:1px;left:3px;background-color:'+t+';opacity:0.6;" />')).append(e('<div style="position:absolute;width:11px;height:11px;top:2px;left:2px;background-color:'+t+';opacity:0.8;" />')).append(e('<div style="position:absolute;width:13px;height:7px;top:4px;left:1px;background-color:'+t+';" />')).append(e('<div style="position:absolute;width:7px;height:13px;top:1px;left:4px;background-color:'+t+';" />')).append(e('<div style="position:absolute;width:9px;height:11px;top:2px;left:3px;background-color:'+t+';" />')).append(e('<div style="position:absolute;width:11px;height:9px;top:3px;left:2px;background-color:'+t+';" />'))};var m=function(t){try{var n=e('<span style="position:relative;display:none;padding:3px;width:300px;position:absolute;bottom:17px;left:-5px;" />');n.append('<div style="position:absolute;height: 50px; width:25;display:block" />');var r=["black","red","blue","yellow","green","brown","magenta","gray"];n.append(e('<div style="display:inline-block;width:15px;height:15px;padding:2px;opacity:0.5;"/>').append(d("#e0e2e0")).append(e('<div style="position:absolute;width:15px;height:15px;" ><table border="0" cellspacing="0" cellpadding="0" style="padding:0px;margin:0px;border:0px;" ><tr><td style="display:block;width:15px;height:15px;vertical-align:top;text-align:center;font-size:11px;color:#000;font-weight:bold;">a</td></tr></table></div>')).click(function(){if(e(this).css("opacity")==.5){p(t,{bold:true});e(this).css("opacity",1)}else{p(t,{bold:false});e(this).css("opacity",.5)}n.hide()}));n.append(e('<div style="display:inline-block;width:15px;height:15px;padding:2px;opacity:0.5;"/>').append(d("#e0e2e0")).append(e('<div style="position:absolute;width:15px;height:15px;" ><table border="0" cellspacing="0" cellpadding="0" style="padding:0px;margin:0px;border:0px;" ><tr><td style="display:block;width:15px;height:15px;vertical-align:top;text-align:center;font-size:11px;color:#000;">A</td></tr></table></div>')).click(function(){if(e(this).css("opacity")==.5){p(t,{caps:true});e(this).css("opacity",1)}else{p(t,{caps:false});e(this).css("opacity",.5)}n.hide()}));for(var i=0;i<r.length;i++){n.append(e('<div style="display:inline-block;width:15px;height:15px;padding:2px;"/>').append(d(r[i])).click(function(){p(t,{color:e(this).children("div").children("div").css("background-color")});n.hide()}))}n.append(e('<div style="margin:2px;display:inline-block;vertical-align:top;width:15px;height:15px;background:url('+Images.iconChatNoColor+')no-repeat 0px 0px transparent;"/>').click(function(){p(t,{color:null});n.hide()}));n.append(e('<div style="margin:3px;display:inline-block;vertical-align:top;width:13px;height:13px;background:url('+Images.iconChat+')no-repeat 0px 0px transparent;"/>').click(function(){g(t);n.hide()}));var s=false;t.mainDiv.find(".chat_input").append(e('<div class="TWDBcolor" style="position:absolute;width:15px;height:15px;bottom:7px;vertical-align:top;left:5px;cursor:pointer;" />').append(d("#e0e2e0")).append(e('<div style="position:absolute;width:15px;height:15px;" ><table border="0" cellspacing="0" cellpadding="0" style="padding:0px;margin:0px;border:0px;" ><tr><td class="TWDBtext" style="display:block;width:15px;height:15px;vertical-align:top;text-align:center;font-size:11px;color:#000;">a</td></tr></table></div>')).append(n).hover(function(){s=true;n.show()},function(){s=false;setTimeout(function(){if(!s){n.hide()}},200)}))}catch(o){Error.report(o,"injectColor")}};var g=function(t){var n=t.mainDiv.find(".TWDBcolor").children("div").children("div");var r=c(n.css("background-color"));var i={};i.customColor=e('<div style="width:50px;height:50px;display:inline-block;vertical-align:top;margin: 5px;" />');i.customColor.css("background-color",h(c(n.css("background-color"))));var o=function(e,t){if(t&&r[e]==9||!t&&r[e]==0){return}var n=[Number(r[0]),Number(r[1]),Number(r[2])];n[e]+=t?1:-1;r=String(n[0])+String(n[1])+String(n[2]);i.input.val(r);if(r[e]==0){i.plusminus[e].children(".butMinus").css("opacity",.3)}else{i.plusminus[e].children(".butMinus").css("opacity",1)}if(r[e]==9){i.plusminus[e].children(".butPlus").css("opacity",.3)}else{i.plusminus[e].children(".butPlus").css("opacity",1)}i.customColor.css("background-color",h(r))};var u=e('<div style="width:42px;height:48px;display:inline-block;vertical-align:top;margin: 6px 5px 6px 5px;" />');i.plusminus=[];for(var a=0;a<3;a++){switch(a){case 0:var f="#f00";break;case 1:var f="#0f0";break;case 2:var f="#00f";break}i.plusminus[a]=e('<div class="tw2gui_plusminus" style="display:inline-block;background-color:'+f+';width:12px;height:46px;padding:1px;"><span class="butPlus" style="cursor:pointer;"></span><span style="width:12px;height:10px;display:inline-block;"></span><span class="butMinus" style="cursor:pointer;"></span></div>');i.plusminus[a].children(".butMinus").click(function(e){return function(){o(e,false)}}(a));i.plusminus[a].children(".butPlus").click(function(e){return function(){o(e,true)}}(a));if(r[a]==0){i.plusminus[a].children(".butMinus").css("opacity",.3)}if(r[a]==9){i.plusminus[a].children(".butPlus").css("opacity",.3)}u.append(i.plusminus[a])}u.append(i.plusminus[0]).append(i.plusminus[1]).append(i.plusminus[2]);i.input=e('<input maxLength="3" type="text" value="'+r+'" style="position: relative; top: -35px; left: 2px;color: rgb(255, 255, 255); font-weight: bold; letter-spacing: 6px; text-shadow: 1px 1px 1px rgb(0, 0, 0); width: 43px; background: none repeat scroll 0pt 0pt transparent; border: medium none; height: 18px; line-height: 18px; margin: 0pt; outline: medium none;" />');i.input.keyup(function(){var e=i.input.val();if(e.length<3){return}if(!e.match(/(\d){3}/)){i.input.val(r);return}r=e;for(var t=0;t<3;t++){if(r[t]==0){i.plusminus[t].children(".butMinus").css("opacity",.3)}else{i.plusminus[t].children(".butMinus").css("opacity",1)}if(r[t]==9){i.plusminus[t].children(".butPlus").css("opacity",.3)}else{i.plusminus[t].children(".butPlus").css("opacity",1)}}i.customColor.css("background-color",h(r));i.input.attr("value",r)});u.append(i.input);var l={bold:t._bold,caps:t._caps};var d=e('<div style="height:50px;display:inline-block;vertical-align:top;margin: 5px;" />');var v=new west.gui.Checkbox("*bold*",l.bold?"tw2gui_checkbox_checked":"",function(){l.bold=l.bold?false:true});e(v.getMainDiv()).css("display","block").css("margin-bottom","5px");d.append(v.getMainDiv());var v=new west.gui.Checkbox("CAPITALIZE",l.caps?"tw2gui_checkbox_checked":"",function(){l.caps=l.caps?false:true});d.append(v.getMainDiv());var m=e('<div style="width:160px;height:50px;display:inline-block;vertical-align:top;border: 1px solid #000;padding: 0px;margin: 5px;" />');m.append('<span style="width:140px;height:15px;display:inline-block;text-align:center;padding: 4px 0px 2px 0px;font-size:11px;">history</span>');for(var a=0;a<s.length;a++){var g=e('<div style="width:20px;height:20px;display:inline-block;vertical-align:top;margin: 0px 0px 0px 10px;cursor:pointer;background-color:'+h(s[a])+';" />');g.click(function(){p(t,{color:e(this).css("background-color"),bold:l.bold,caps:l.caps});i.colorBox.hide()});m.append(g)}var y=e("<div />").append(i.customColor).append(u).append(d).append(m);i.colorBox=new west.gui.Dialog("Color",y);i.colorBox.addButton("ok",function(){p(t,{color:e(i.customColor).css("background-color"),bold:l.bold,caps:l.caps})});i.colorBox.addButton("cancel");i.colorBox.show()};return t}(jQuery);Debugger.Chat=Chat;var SellTip=function(e){var t={};var n=false;var r={};var i=function(){if(r.ready){return}if(Settings.get("sellTip",true)){GameInject.injectItem("Inventory","sellTip",function(e){setTimeout(function(){return s(e)},0)})}r.ready=true};r=Loader.add("sellTip","tw-db sellTip",i,{Settings:true,ClothCalc:true});var s=function(e){var t=e.obj.item_id;var n=w.ItemManager.get(t);var r=false;var i="";if(!n.sellable&&!n.auctionable){return}if(Settings.get("sellTip1",true)){var s=w.Bag.getItemByItemId(n.item_id);var o=w.Wear.wear[n.type];if(s||o&&o.obj.item_id==n.item_id){var u=(s!==undefined?s.count:0)+(o!==undefined&&o.obj.item_id==n.item_id?1:0);if(u>1){r=true;i="this item you have more than once".escapeHTML()}}}if(Settings.get("sellTip2",true)&&ClothCalc.isLoaded()){if(!ClothCalc.isUsedItem(n.item_id)){r=true;i="this item is not used for any job or custom defined activity (ClothCalc)".escapeHTML()}}if(Settings.get("sellTip3",true)){if(n.named){r=false}}if(Settings.get("sellTip4",true)){if(n.traderlevel===null||n.traderlevel>20){r=false}}if(Settings.get("sellTip5",true)){if(n.set){r=false}}e.divMain.find(".TWDBsellTip").remove();if(r){e.divMain.append('<img src="'+Images.iconSell+'" class="TWDBsellTip" title="'+i+'" title=" this item you have not yet " style="position:absolute;bottom:4px;right:0px;width:19px;height:19px;padding:0px;border:0px;margin:0px;" />')}};return t}($);Debugger.SellTip=SellTip;var Collector=function(e){var t={};var n=false;var r={};var i=function(){if(r.ready){return}if(Settings.get("collector",true)){GameInject.injectItem("Trader","collector",function(e){return s(e)});GameInject.injectTrader("collector",function(e){if(t.isNewItem(e.item_id)){var n='<img src="'+Images.iconNew+'" class="TWDBcollector" title=" this item you have not yet " '+' style="position:absolute;top:0px;left:0px;padding:0px;border:0px;margin:0px;" />';return n}return""});GameInject.injectMarket("collector",function(e){return o(e)});GameInject.injectGetBids()}r.ready=true};r=Loader.add("Collector","tw-db Collector",i,{Settings:true});t.isNewItem=function(e){var t=w.ItemManager.get(e);var n=w.Bag.getItemsIdsByBaseItemId(t.item_base_id);var r=w.Wear.wear[t.type];var i=r&&r.obj.item_base_id==t.item_base_id;var s=TWDB.ClothCalc.bids[t.item_id];var o=TWDB.ClothCalc.recipes[t.item_id];if(n.length||i||s||o){return false}else{return true}};var s=function(e){e.divMain.find(".TWDBcollector").remove();if(t.isNewItem(e.obj.item_id)){e.divMain.append('<img src="'+Images.iconNew+'" class="TWDBcollector" title=" this item you have not yet " style="position:absolute;top:-8px;left:-15px;padding:0px;border:0px;margin:0px;" />')}};var o=function(e){if(t.isNewItem(e)){return'<img src="'+Images.iconNew+'" class="TWDBcollector" title=" this item you have not yet " style="width:18px;height:18px;position:relative;top:0px;left:0px;padding:0px;border:0px;margin:0px;" />'}else{return""}};return t}($);Debugger.Collector=Collector;var BuyTip=function(e){var t={};var n=false;var r={};var i=0;var s={};var o={};var u=function(){if(o.ready){return}if(Settings.get("buyTip",true)){GameInject.injectItem("Trader","buytip",function(e){return f(e,"trader")});GameInject.injectTrader("buytip",function(e){return a(e)});GameInject.injectMarket("buytip",function(e){return f(e,"market")})}Eventer.set("TWDBdataLoaded",function(){t.reset()});if(!Updater.wasUpdated()){r=Cache.load("betteritems");if(r==null||typeof r!=="object"){r={}}}o.ready=true};o=Loader.add("BuyTip","tw-db BuyTip",u,{Settings:true,Cache:true,Collector:true,ClothCalc:true,Calc:true});t.reset=function(){r={};Cache.save("betteritems",r)};var a=function(e){n=e.item_id;if(!Collector.isNewItem(n)||isDefined(r[n])&&r[n].length==0){return""}if(isDefined(r[n])){var t=h(n);if(isDefined(t)){t.css({bottom:"45px",right:"11px"})}return t}l(n);var t=h(n);if(isDefined(t)){t.css({bottom:"45px",right:"11px"})}return t};var f=function(e,t){if(t=="shop"){n=e.item_id}else{n=t=="market"?e:e.obj.item_id}if(!Collector.isNewItem(n)||isDefined(r[n])&&r[n].length==0){return""}if(t=="market"){if(isDefined(r[n])){return c(n)}i++;Worker.add(function(e,t){return function(){l(t);var n=w.MarketWindow.DOM.find("#TWDBbuyTip"+e);n.after(c(t));n.remove()}}(i,n));return'<img id="TWDBbuyTip'+i+'" src="'+Images["iconStar3"]+'" class="TWDBbuyTip" width="18px" height="18px" title="Calculating, please wait..." style="padding:0px;border:0px;margin:0px;" />'}if(isDefined(r[n])){if(t=="shop"){var s=h(n);s.css({bottom:"45px",right:"11px"});return s}else{e.divMain.find(".TWDBbuyTip").remove();e.divMain.append(h(n))}return}if(isDefined(e.divMain)){e.divMain.find(".TWDBbuyTip").remove()}e.divMain.append('<img src="'+Images["iconStar3"]+'" class="TWDBbuyTip" width="25px" height="25px"     title="Calculating, please wait..."  style="position:absolute;bottom:-8px;right:-5px;padding:0px;border:0px;margin:0px;" />');Worker.add(function(e,t){return function(){l(t);if(t=="shop"){var n=h(t);n.css({bottom:"45px",right:"11px"});return n}else{e.divMain.find(".TWDBbuyTip").remove();e.divMain.append(h(t))}}}(e,n))};var l=function(e){if(!ClothCalc.isLoaded()){return}if(!ClothCalc.isItemUsable(e,true)){return}if(isDefined(r[e])){return}r[e]=[];var t=ItemManager.get(e);var n=Jobs.getAllJobs();for(var i=0;i<n.length;i++){var s=n[i];var o=ClothCalc.getClothForJob(s);if(!isDefined(o)){continue}var u=0;var a=Calc.getItemBonusForJob(e,s);if(isDefined(o[TWDB.ClothCalc._type2id[t.type]])){var f=ItemManager.get(o[TWDB.ClothCalc._type2id[t.type]].id);u+=Calc.getItemBonusForJob(f.item_id,s)}if(isDefined(f)&&isDefined(f.set)||isDefined(t.set)){var l=isDefined(f)&&isDefined(f.set)?f.set:null;var c=isDefined(t.set)?t.set:null;var h={};h[l]=0;h[c]=0;for(var p in o){var d=ItemManager.get(o[p].id);if(!isDefined(d)){continue}if(d.set){if(d.set==l){h[l]++}if(d.set==c&&l!==c){h[c]++}}}if(l){u+=Calc.getSetBonusForJob(l,h[l],s);u-=Calc.getSetBonusForJob(l,h[l]-1,s)}if(c){a+=Calc.getSetBonusForJob(c,h[c]+1,s);a-=Calc.getSetBonusForJob(c,h[c],s)}}if(a>u){var v=ClothCalc.getLPForJob(s);if(isDefined(v)){var m=v.sum-u+a;r[e].push({job:s,newlp:m,more:m-v.sum})}else{r[e].push({job:s,newlp:a,more:a})}}}Cache.save("betteritems",r)};var c=function(e){if(!isDefined(r[e])){return""}if(r[e].length==0){return""}s[e]=false;var t=p(e).escapeHTML();return"<img onload=\"$(this).next('.TWDBcollector').remove();$(this).addMousePopup('"+t+'\');" src="'+Images["iconStar"+(s[e]?"2":"")]+'" class="TWDBbuyTip" width="18px" height="18px" style="padding:0px;border:0px;margin:0px;" />'};var h=function(t){if(!isDefined(r[t])){return}if(r[t].length==0){return}s[t]=false;var n=p(t);return e('<img src="'+Images["iconStar"+(s[t]?"2":"")]+'" class="TWDBbuyTip" width="25px" height="25px" title=\''+n+'\' style="position:absolute;bottom:-8px;right:-5px;padding:0px;border:0px;margin:0px;" />')};var p=function(e){if(!isDefined(r[e])){return""}var t='<table border="0" cellspacing="0" cellpadding="0"><tr>';if(!ClothCalc.isItemUsable(e)){var n=ItemManager.get(e);t+='<td colspan="2" style="text-align:center; font-weight:bold;">Level '+n.level+"</td></tr><tr>"}for(var i=0;i<r[e].length;i++){var o=r[e][i];var u=Jobs.getJobById(o.job);var a=" +"+o.more+" "+u.name.escapeHTML()+" ["+o.newlp+"]";if(o.job==ClothCalc.getSelectedJob()){a="<b>"+a+"</b>";s[e]=true}if(o.newlp<0){var f="#FF0000"}else{if(o.newlp-o.more<0){var f="#0000FF"}else{var f="#008000"}}t+='<td style="color:'+f+';">'+a+"</td>";if(i%2){t+="</tr><tr>"}}if(i%2){t+="<td></td></tr>"}else{t=t.substring(0,t.length-4)}t+="</table>";return t};return t}($);Debugger.BuyTip=BuyTip;var LpInfo=function(e){var t={};var n=false;var r={};var i=function(){if(r.ready){return}if(Settings.get("jobBoniTooltip",true)){GameInject.injectItem("Inventory","lpInfo",function(e){return s(e)})}r.ready=true};r=Loader.add("LpInfo","tw-db LpInfo",i,{Settings:true,Jobs:true,Calc:true});var s=function(e){e.divMain.find(".TWDBlpInfo").remove();var t=ClothCalc.getSelectedJob();if(!isDefined(t)){return}var n=e.obj.item_id;e.divMain.find(".TWDBlpInfo").remove();if(Calc.isCached(n,t)){e.divMain.append(o(n,t))}else{Worker.add(function(e,t,n){return function(){e.divMain.find(".TWDBlpInfo").remove();e.divMain.append(o(t,n))}}(e,n,t))}};var o=function(e,t){var n=Calc.getItemBonusForJob(e,t);if(isNaN(n)||n<=0){return}var t=Jobs.getJobById(t);return'<img src="'+Images.iconLaborpoints+'" title="+'+n+" "+t.name.escapeHTML()+'" class="TWDBlpInfo" style="position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; border: 0px none; margin: 0px;"/>'};return t}($);Debugger.LpInfo=LpInfo;var Snippets=function($){var _self={};var timeout=null;var interval=null;var loader={};var init=function(){if(loader.ready){return}trustTWDB();if(Settings.get("collectorsell",true)){GameInject.injectWanderingTraderSellDialog()}if(Settings.get("customcounterpos",true)){repositionEventCounters()}if(Settings.get("noscrollbars",false)){disableScrollbars()}if(Settings.get("instanthotel",true)){InstantHotel()}if(Settings.get("qbswitch",true)){QuestbookSwitch()}if(Settings.get("qfulltext",false)){QuestFullText()}if(Settings.get("fastskillchange",true)){fastSkillChange()}if(Settings.get("fortrecruitment",true)){activateFortRecruitment()}if(Settings.get("noworkqueuepa",true)){removeWorkQueuePA()}if(Settings.get("nofetchallpa",false)){removeVariousPA()}if(Settings.get("nowofnuggets",false)){changeWofNuggets()}if(Settings.get("marketselldialog",true)){enhanceMarketSellDialog()}if(Settings.get("weeklycrafting",false)){weeklyCrafting()}if(Settings.get("pinitems",true)){GameInject.injectInventoryAddItemsPinItems();GameInject.injectInventoryAddItemDivToInvPinItems()}if(Settings.get("telegramsource",true))GameInject.injectTelegramWindowAppendTelegramDisplaySource();if(Settings.get("noshopsale",false)){supressOnGoingEntries()}if(Settings.get("expbarvalues",true)){expBarValues()}if(Settings.get("mini_chatgui",true)){allowChatGuiMinimize()}if(Settings.get("tasklistpoints",true)){addTaskJobsHints();GameInject.injectTaskJobs()}var e=(new ServerDate).date;if(Game.locale=="de_DE"&&e.getDate()<8&&e.getMonth()==3&&e.getFullYear()==2017)GameInject.injectDontTellAnyone();loader.ready=true};loader=Loader.add("Snippets","tw-db code Snippets",init,{Settings:true});var trustTWDB=function(){try{var str=showlink.toString();str=str.replace("the-west","tw-db|the-west");str=str.replace("|com|","|com|info|");eval("showlink = "+str)}catch(e){}};var repositionEventCounters=function(){TWDB.Util.addCss("@media (min-width: 1320px) { .custom_unit_counter {top: -1px!important; margin-left: 310px!important;} #hiro_friends_container {top: -1px!important; margin-right: 304px!important;} }")};var disableScrollbars=function(){$("body").css({overflow:"hidden"})};var allowChatGuiMinimize=function(){TWDB.Util.addCss("div#ui_bottomleft { width: auto; overflow: hidden; }"+"div#ui_chat { margin-top: 12px; }"+"div#ui_chat div#toggleMinChat { position: absolute; top: -14px; left: 5px; width: 27px; display: block; background-size: 108px 42px; border: 0px solid rgba(0, 0, 0, 0); background-clip: content-box; }"+"div#ui_chat.minchat div#toggleMinChat { background-position: 0px 0px; border-width: 0px 8px 34px 0px; }"+"div#ui_chat.minchat div#servertime { display: none; }"+"div#ui_chat.minchat > div.tabs div { display: none; }"+"div#ui_chat.minchat div.container div.friend { display: none!important; }"+"div#ui_chat.minchat div.container div.general { display: block!important; }"+"div#ui_chat.minchat div.container div.vertical_divider { display: none; }"+"div#ui_chat.minchat img.leave_channel { display: none!important; }"+"div#ui_chat div.minchat_tabr { display: none; }"+'div#ui_chat.minchat div.minchat_tabr { display: block; position: absolute; left: 32px; top: 0px; width: 8px; height: 34px; background: url("'+to_cdn("images/interface/chat/chat-top.png?1")+'") top right; }'+"div#ui_chat.minchat { position: relative; left: -10px; top: 4px; width: 39px; }"+'div#ui_chat.minchat > div.tabs { width: 32px; background: url("'+to_cdn("images/interface/chat/chat-top.png?1")+'"); }'+"div#ui_chat.minchat div.chat_channel { width: 24px; }"+"div#ui_chat.minchat div.chat_channel .new_message { left: 2px; top: 0px; }"+"div#ui_chat.minchat div.chat_channel div.online_count { background: none; position: absolute; right: 0px; top: -1px; width: auto; height: auto; line-height: normal; padding: 0px; font-size: 8pt; font-weight: bold; text-align: right; text-shadow: -1px 1px 1px #FFF, 0px 0px 2px #FFF; cursor: default; }"+"div#ui_chat.minchat div.container { width: 40px; background-position-x: right; }"+"div#ui_chat.minchat div.row_title { left: 5px; width: 32px; opacity: 0; }"+"div#ui_chat.minchat div.tw2gui_scrollpane { width: 50px; }","minchat");$("div#ui_chat").append('<div class="minchat_tabr" />').toggleClass("minchat",Settings.get("mini_chatgui_min",true)).children(".tabs").first().append($('<div id="toggleMinChat" class="tw2gui_arrow_up_top" />').on("click",function(e){e.stopPropagation();Settings.set("mini_chatgui_min",$("div#ui_chat").toggleClass("minchat").hasClass("minchat"));return false}))};var addTaskJobsHints=function(){var e="div#ui_workcontainer div.twdb_lp_hint { position: absolute; left: 2px; width: 18px; height: 18px; background-color: #432; border: 2px ridge #976; border-radius: 11px; background-blend-mode: soft-light; }"+"div.twdb_lp_hint > img { position: absolute; left: 1px; top: 1px; }";TWDB.Util.addCss(e);var t=function(){if(TaskQueue.queue.length){var e,t=$("div#ui_workcontainer"),n,r;for(e=0;e<TaskQueue.queue.length;e++){if(TaskQueue.queue[e].type==="job"){n=null;r=TWDB.ClothCalc.calcdata.loaded&&TaskQueue.queue[e].data.job_points<TWDB.ClothCalc.calcdata.jobs[TaskQueue.queue[e].data.job.id].laborpoints.sum-5;if(TaskQueue.queue[e].data.job_points<0){n=west.gui.Icon.get("exclamation-priority-3","negative labor points")}else if(TaskQueue.queue[e].data.job_points<TaskQueue.queue[e].data.job.malus/5){n=west.gui.Icon.get("exclamation-priority-2","low labor points")}else if(r){n=west.gui.Icon.get("exclamation-priority-1","not optimal labor points")}if(n!==null){$(".task-queuePos-"+e+" > div.icon",t).children(".twdb_lp_hint").remove().end().append($('<div class="twdb_lp_hint" />').toggleClass("tw2gui-iconset tw2gui-icon-star",!r).append(n))}}}}};EventHandler.listen(["taskqueue-updated","taskqueue-ready"],t)};var expBarValues=function(){if(isDefined(w.SlySuite)){TWDB.Settings.set("expbarvalues",false);return}TWDB.Util.addCss("div#ui_experience_bar .label {text-shadow: 3px 1px 1px #000, 3px -1px 1px #000, -2px 1px 1px #000, -2px 0px 0px #000;}");var e=function(e){if(Math.abs(e)>=1e4){return Math.round(e/1e3)+"k"}else{return e}};var t=function(){var t=$("#ui_experience_bar"),n=undefined===Character.getTrackingAchievement()?WestUi.updateTrackXp(t):WestUi.updateTrackAchievement(t);$(".label",t).off("hover");$(".label span",t).show();xpString="";if(Character.level<150){xpString=n.percent+"% - "+e(n.current)+" / "+e(n.required);xpString+=" ("+e(n.required-n.current)+")"}else xpString=Character.experience.toLocaleString();$(".label span",t).html(xpString)};EventHandler.listen("character_exp_changed",t);EventHandler.listen("character_tracking_achievement_changed",t);t()};var supressOnGoingEntries=function(){var e=["shop_sale"];var t=function(e){if($.isArray(e)){for(var n=0;n<e.length;n++){t(e[n])}}else if(typeof e==="string"){var r=WestUi.NotiBar.main.list;for(var n=0;n<r.length;n++){if($(r[n].element).children().is("div.image."+e)){WestUi.NotiBar.remove(r[n])}}}};var n=function(e){try{WestUi.NotiBar.__twdb__add=WestUi.NotiBar.__twdb__add||WestUi.NotiBar.add;WestUi.NotiBar.add=function(t){var n=$(".image",t.element);for(var r=0;r<e.length;r++){if(n.hasClass(e[r])){return}}WestUi.NotiBar.__twdb__add.apply(this,arguments)}}catch(t){Error.report(t,"manipulate WestUi.NotiBar.add")}};n(e);t(e)};var InstantHotel=function(){try{w.Map.Component.Town.prototype.__twdb__getContent=w.Map.Component.Town.prototype.__twdb__getContent||w.Map.Component.Town.prototype.getContent;w.Map.Component.Town.prototype.getContent=function(){var e=this.__twdb__getContent();if(e===""){return e}else{return e.replace(/\<\/div\>$/,"<div class='instanthotel needslistener' title='Hotel' tid='"+this.data[1].town_id+"'></div></div>")}};w.Map.Draw.__twdb__checkDouble=w.Map.Draw.__twdb__checkDouble||w.Map.Draw.checkDouble;w.Map.Draw.checkDouble=function(){$("#map div.instanthotel.needslistener").each(function(e,t){var n=$(t);var r=parseInt(n.attr("tid"),10);n.click(function(e){e.stopPropagation();HotelWindow.open(r);return false}).removeClass("needslistener").removeAttr("tid")});return w.Map.Draw.__twdb__checkDouble()};var e="div.instanthotel { background-image: url('"+TWDB.images.instanthotel+"'); width: 20px; height: 20px; "+"position: absolute; right: 10px; top: -8px; cursor: pointer; display: none; }\n"+"div.townname:hover .instanthotel { z-index: 2; display: block; }";TWDB.Util.addCss(e);w.Map.refresh(true)}catch(t){Error.report(t,"manipulate town signs")}};var fastSkillChange=function(){try{west.gui.Plusminusfield.prototype.__twdb__init=west.gui.Plusminusfield.prototype.init;west.gui.Plusminusfield.prototype.init=function(e,t,n,r,i,s,o,u){this.__twdb__init.apply(this,arguments);var a=this;var f={minus:$("span.butMinus",a.divMain),plus:$("span.butPlus",a.divMain)};$(this.divMain).off("mousewheel").on("mousewheel",function(e,t){f[t<0?"minus":"plus"].click();e.stopPropagation();return false});$.each(f,function(e,t){var n=400,r=-1,i=function(){n=Math.max(Math.round(n*(n/200+1)/(n/133+1)),5);t.click();r=setTimeout(i,n)},s=function(){r=setTimeout(i,n)},o=function(e){if(r!==-1){clearTimeout(r);r=-1}n=400};t.css("cursor","pointer").mousedown(s).mouseup(o).mouseout(o)})}}catch(e){Error.report(e,"manipulate Plusminusfield")}};var QuestbookSwitch=function(){try{QuestGroupWindowView.cc_showSolvedQuest=QuestGroupWindowView.showSolvedQuest;QuestGroupWindowView.showSolvedQuest=function(e){QuestGroupWindowView.cc_showSolvedQuest(e);var t=$("div.window-quest_group div.quest_description_container span").slice(1).hide();var n=$("<span><br>"+e.description+"</span>");$("div.window-quest_group div.quest_description_container").append(n);var r=$('<a href="#"> Show completion text </a>').addClass("introshown").click(function(){var e=$(this),r=e.hasClass("introshown");t.toggle(r);n.toggle(!r);e.text(r?" Show introduction text ":" Show completion text ");e.toggleClass("introshown")});$("div.window-quest_group div.solved_text_container").append($("<div style='text-align:center;margin-top:10px;'>").append(r))}}catch(e){Error.report(e,"manipulate showSolvedQuest")}};var QuestFullText=function(){try{QuestWindowView.cc_showQuest=QuestWindowView.showQuest;QuestWindowView.showQuest=function(e){QuestWindowView.cc_showQuest(e);$("div.quest_description_container div#quest_shortd").hide();$("div.quest_description_container div#quest_fulld").show()};QuestEmployerView.cc_showQuest=QuestEmployerView.showQuest;QuestEmployerView.showQuest=function(e){QuestEmployerView.cc_showQuest(e);$("div.quest_description_container div#quest_shortd").hide();$("div.quest_description_container div#quest_fulld").show()}}catch(e){Error.report(e,"manipulate showQuest")}};var removeWorkQueuePA=function(){try{TWDB.Util.addCss("#queuedTasks .buyPremiumTask {background: none!important}");Premium.checkForAutomationPremium=function(e,t){if(typeof t!=="undefined")return t()}}catch(e){Error.report(e,"manipulate removeWorkQueuePA")}};var changeWofNuggets=function(){try{west.gui.payHandler.prototype.__twdb__addPayOption=west.gui.payHandler.prototype.addPayOption;west.gui.payHandler.prototype.addPayOption=function(e){this.__twdb__addPayOption.apply(this,arguments);if(false===e||"nugget"===e||2==e||2==e.id){return this}this.setSelectedPayId(e.id||e);return this}}catch(e){Error.report(e,"manipulate changeWofNuggets")}};var removeVariousPA=function(){var e=[],t;if(Settings.get("nofetchallpa",false))e.push("marketdelivery all");if(!e.length)return;t=new RegExp(e.join("|"));try{Premium.twdb_confirmUse=Premium.confirmUse;Premium.confirmUse=function(e,n,r,i,s,o,u,a){if(t.test(e)){if(typeof u!=="undefined")return u()}else{return Premium.twdb_confirmUse(e,n,r,i,s,o,u,a)}}}catch(n){Error.report(n,"manipulate removeVariousPA")}};var activateFortRecruitment=function(){try{FortBattleWindow.__twdb__getInfoArea=FortBattleWindow.__twdb__getInfoArea||FortBattleWindow.getInfoArea;FortBattleWindow.getInfoArea=function(){this.preBattle.battleData.canSetPrivilege=true;return FortBattleWindow.__twdb__getInfoArea.apply(this,arguments)}}catch(e){Error.report(e,"manipulate FortBattleWindow.getInfoArea")}};var enhanceMarketSellDialog=function(){var e;var t=TWDB.Cache.load("msdsettings");if(typeof t!=="object"||t==null){t={cb:{}}}else if(typeof t.cb!=="object"||t.cb==null){t.cb={}}try{if(!isDefined(west.gui.Dialog.prototype.__twdb__show)){west.gui.Dialog.prototype.__twdb__show=west.gui.Dialog.prototype.show}if(TWDB.script.isDev()){west.gui.Dialog.prototype.show=function(){if(this.divMain.attr("id")==="market_createoffer_window"){var e=this.__twdb__show();w.setTimeout(function(){MarketWindow.TWDB_touchUpSellDialog(e)},25);return e}var t=["div#equip_manager_list","span.twdb_banking"].join(", ");if($(this.divMain).find(t).addBack().is(t)){return this.setModal(false).setBlockGame(false).setDraggable(true).__twdb__show()}return this.__twdb__show()}}else{west.gui.Dialog.prototype.show=function(){if(this.divMain.attr("id")==="market_createoffer_window"){var e=this.__twdb__show();w.setTimeout(function(){MarketWindow.TWDB_touchUpSellDialog(e)},25);return e}return this.__twdb__show()}}if(!isDefined(MarketWindow.TWDB_createMarketOffer)){MarketWindow.TWDB_createMarketOffer=MarketWindow.createMarketOffer}MarketWindow.createMarketOffer=function(t){var n=typeof t=="number"?t:$(t).data("itemId");if(n===undefined){var r=$(this).data("dnd_droppedObj");n=r.data("itemId")}e=w.ItemManager.get(n);return MarketWindow.TWDB_createMarketOffer(n)}}catch(n){Error.report(n,"manipulate market sell dialog")}MarketWindow.TWDB_touchUpSellDialog=function(n){if(n.divMain.attr("id")!=="market_createoffer_window"){return}var r=$("div.tw2gui_dialog_content",n.divMain);if(r.find("#auction_item_slot",r).html()=="")return w.setTimeout(function(){MarketWindow.TWDB_touchUpSellDialog(n)},25);$("div.tw2gui_dialog_framefix").css({left:"50%",top:"50%",width:"1px",height:"1px"});$("textarea#auction_description",r).css("width","270px").closest("tr").append("<td id='twdb_msd_desc_cc'>");var i=$("table:nth-child(2)",r);$("tr:first-child",i).after($("<tr>").append("<td>",'<td id="twdb_msd_bid_cc" style="min-width: 90px;">',"<td>",'<td id="twdb_msd_buy_cc" style="min-width: 90px;">'));$("tr:nth-last-child(5) td:nth-child(2) span.tw2gui_textfield",i).after('<span id="twdb_msd_mult_cc" title="Adjust (multiply) the current price with this count" style="background-image: url(&quot;/images/ranking/town_ranking_icons.png&quot;); display:inline-block; height:16px; width:16px; background-position:0px -80px; cursor:pointer;">&nbsp;</span>');$("tr:last-child td:first-child",i).attr("colspan",3).before('<td id="twdb_msd_opt_cc">');var s=function(){n.divMain.css({"margin-top":"-"+n.divMain.height()/2+"px","margin-left":"-"+n.divMain.width()/2+"px"})};var o=function(){var e,n=this.groupClass;$("div.tw2gui_checkbox."+n).not(this.divMain).removeClass("tw2gui_checkbox_checked");if(this.isSelected()){e=this.getValue();this.divMain.next().click()}else{e=0}t.cb[n]=e;TWDB.Cache.save("msdsettings",t);(new UserMessage("saved successful",UserMessage.TYPE_SUCCESS)).show();return this};var u=function(e,n){t[e]=n;TWDB.Cache.save("msdsettings",t);(new UserMessage("saved successful",UserMessage.TYPE_SUCCESS)).show()};var a=function(){var e,n;for(e in t.cb){if(!t.cb.hasOwnProperty(e))continue;$("div.tw2gui_checkbox."+e).each(function(){n=$(this).guiElement();if(n.getValue()===t.cb[e]){n.setSelected(true,true);$(this).next().click()}})}$("textarea#auction_description",r).val(t.description||"");$("span#market_days.tw2gui_combobox",r).guiElement().select(t.duration||1);$("span#market_rights.tw2gui_combobox",r).guiElement().select(isDefined(t.rights)?t.rights:2)};$("#twdb_msd_desc_cc",r).append($('<div class="tw2gui-iconset tw2gui-icon-save" title="Save description for future auctions">').click(function(){u("description",$("textarea#auction_description",r).val())}),$('<div class="tw2gui-iconset tw2gui-icon-abort" title="Reset description">').click(function(){u("description","");$("textarea#auction_description",r).val("")}));$("#twdb_msd_buy_cc",r).append((new west.gui.Checkbox("","twdb_msd_buy_fix",o)).setTitle("Use as default price").setValue(2).divMain).append($('<div class="tw2gui_checkbox" title="Set item&#38;#39;s buying price">').append('<span class="invPopup_buyicon" style="height:20px;">').click(function(){$("#market_max_price",r).val(e.price||1).keyup()})).append("&nbsp;&nbsp;").append((new west.gui.Checkbox("","twdb_msd_buy_fix",o)).setTitle("Use as default price").setValue(1).divMain).append($('<div class="tw2gui_checkbox" title="Set item&#38;#39;s selling price">').append('<span class="invPopup_sellicon" style="height:20px;">').click(function(){$("#market_max_price",r).val(e.sell_price||Math.round(e.price/2)).keyup()}));$("#twdb_msd_bid_cc",r).append((new west.gui.Checkbox("","twdb_msd_bid_fix",o)).setTitle("Use as default price").setValue(2).divMain).append($('<div class="tw2gui_checkbox" title="Set item&#38;#39;s buying price">').append('<span class="invPopup_buyicon" style="height:20px;">').click(function(){$("#market_min_bid",r).val(e.price||1).keyup()})).append("&nbsp;&nbsp;").append((new west.gui.Checkbox("","twdb_msd_bid_fix",o)).setTitle("Use as default price").setValue(1).divMain).append($('<div class="tw2gui_checkbox" title="Set item&#38;#39;s selling price">').append('<span class="invPopup_sellicon" style="height:20px;">').click(function(){$("#market_min_bid",r).val(e.sell_price||Math.round(e.price/2)).keyup()}));$("#twdb_msd_mult_cc",r).click(function(){var e,t=parseInt($("#market_sell_itemStack",r).val(),10);if(t>0){e=parseInt($("#market_min_bid",r).val(),10);if(e>0){$("#market_min_bid",r).val(t*e).keyup()}e=parseInt($("#market_max_price",r).val(),10);if(e>0){$("#market_max_price",r).val(t*e).keyup()}}});$("#twdb_msd_opt_cc",r).append($('<span class="tw2gui-iconset tw2gui-icon-save" title="Save duration and rights for future auctions" style="display: inline-block;">').click(function(){u("duration",parseInt($("#market_days",r).data("value"),10));u("rights",parseInt($("#market_rights",r).data("value"),10))}),$('<span class="tw2gui-iconset tw2gui-icon-abort" title="Reset options" style="display: inline-block;">').click(function(){u("duration",1);$("span#market_days.tw2gui_combobox",r).guiElement().select(1);u("rights",2);$("span#market_rights.tw2gui_combobox",r).guiElement().select(2)}));var f=$("span#market_rights.tw2gui_combobox",r).guiElement().items;if(f.length===3){var l=["home","flag","world"];for(var c=0;c<f.length;c++){f[c].node[0].innerHTML='<span class="tw2gui-iconset tw2gui-icon-'+l[f[c].value]+'" style="display: inline-block;position: relative;top: 4px;"></span>&nbsp;'+f[c].node[0].innerHTML}}var h=$("h4",r),p=$("table#mps_otheroffers",r);if($("tr",p).length>2||$("tr:nth-child(2) > td",p).attr("colspan")!==4){h.html(h.html()+"&nbsp;("+($("tr",p).length-1)+")").click(function(){p.toggle();s()}).css({cursor:"pointer"})}else{h.html(h.html()+"&nbsp;(0)");p.hide()}s();a()}};var weeklyCrafting=function(){if(w.Character.professionId&&w.Character.professionSkill>599){var e=function(e){var t=new OnGoingEntry;var n=ItemManager.get(ItemManager.get(e).craftitem);var r="<div style='text-align:center;'>You can craft again!<br />"+'<div class="item  item_inventory" style="display:inline-block;float:none;"><img class="tw_item item_inventory_img" src="'+n.image+'"></div><br />'+n.name+"</div>";t.init("",function(){CharacterWindow.open("crafting");TWDB.Cache.save("craftingCheck",{found:false,date:null})},11);t.setTooltip(r);t.setImageClass("work");t.highlightBorder();WestUi.NotiBar.add(t);TitleTicker.setNotifyMessage("Crafting")};var t=function(){var r=TWDB.Cache.load("craftingCheck")||{found:false,date:null};if(!r.found){return n()}var i=(new Date(r.date)).getTime()-(new ServerDate).getTime();if(i<0){return e(r.found)}else if(i<864e5){if(i<18e4){w.setTimeout(function(){e(r.found)},i)}else{w.setTimeout(function(){t()},parseInt(i/2,10))}}};var n=function(){Ajax.remoteCall("crafting","",{},function(e){if(e.error){return(new UserMessage(e.msg)).show()}if(e.hasOwnProperty("recipes_content")&&e.recipes_content.length>0){var n;var r=[20099e3,20104e3,20109e3,20114e3];for(n=0;n<e.recipes_content.length;n++){if(r.indexOf(e.recipes_content[n].item_id)!==-1){if(e.recipes_content[n].last_craft){TWDB.Cache.save("craftingCheck",{found:e.recipes_content[n].item_id,date:new Date((new ServerDate).getTime()+parseInt(e.recipes_content[n].last_craft*1e3,10))})}else{TWDB.Cache.save("craftingCheck",{found:e.recipes_content[n].item_id,date:new Date(null)})}return t()}}}TWDB.Cache.save("craftingCheck",{found:false,date:null})})};t()}};return _self}($);Debugger.Snippets=Snippets;var GameInject=function($){var _self={};var save={};var minimap=[];var questlog=[];var radialmenu=[];var quests=[];var ready=false;var timeout=null;var interval=null;var _position=[];var _reportreceived=[];_self.CharacterButton=function(e){var t={};var n=0;var r=null;t.add=function(t){if(n==0){var i="div#twdb_characbut {width:36px; height:35px; position:absolute; left:141px; top:131px; border-bottom-left-radius:8px;"+"background:url("+Game.cdnURL+"/images/interface/character/character.png?3) no-repeat -141px -105px transparent;}";TWDB.Util.addCss(i);r=e('<div id="twdb_characbut" />');e("#ui_character_container").prepend(r)}n++;r.css({height:10+26*n+"px","background-position":"-141px "+(26*n-131)+"px"});var s=e('<div class="char_links" style="top:'+(6+(n-1)*26)+"px;left:6px;background:url("+t+')no-repeat 0px 0px transparent;"/>');s.hover(function(){e(this).css("background-position","-25px 0px")},function(){e(this).css("background-position","0px 0px")});r.append(s);return s};return t}($);_self.injectTaskJobs=function(){try{var e=TaskJob;TaskJob=function(){var t=e.apply(this,arguments);t.__twdb__getTitle=t.getTitle;t.getTitle=function(){return t.__twdb__getTitle()+"LP: "+(this.data.job_points<0?"<b class='text_red'>":"<b>")+this.data.job_points+"</b><br />"};return t}}catch(t){Error.report(t,"manipulate TaskJob template")}try{if(TaskQueue.queue.length){var n=$("script:contains('TaskQueue.init')").text().match(/TaskQueue\.init\(\s*(\[[^\]]*\])/);if(n.length===2){n=$.parseJSON(n[1]);TaskQueue.init(n,TaskQueue.limit)}}}catch(t){Error.report(t,"manipulate existing Job tasks")}};_self.ChatLayout=function(e){var t=[];return function(e){if(t.length==0){try{save["window.Chat.Layout.Tab.prototype.getMainDiv"]=window.Chat.Layout.Tab.prototype.getMainDiv;window.Chat.Layout.Tab.prototype.getMainDiv=function(){for(var e=0;e<t.length;e++){try{t[e](this)}catch(n){Error.report(n,"callbacks on Chat Layout")}}return this.mainDiv}}catch(n){Error.report(n,"manipulate Chat Layout");window.Chat.Layout.Tab.prototype.getMainDiv=save["window.Chat.Layout.Tab.prototype.getMainDiv"]}}t.push(e)}}($);_self.ChatSend=function(e){var t=[];return function(e){if(t.length==0){try{window.Chat.Layout.Tab.prototype.twdb_send=window.Chat.Layout.Tab.prototype.send;window.Chat.Layout.Tab.prototype.send=function(){for(var e=0;e<t.length;e++){try{t[e](this)}catch(n){Error.report(n,"callbacks on Chat Send")}}this.twdb_send()}}catch(n){Error.report(n,"manipulate Chat Send");window.Chat.Layout.Tab.prototype.send=window.Chat.Layout.Tab.prototype.twdb_send}}t.push(e)}}($);_self.MarketOfferTable=function(e){var t=[];return function(e){if(t.length==0){try{save["MarketWindow.Offer.updateTable"]=MarketWindow.Offer.updateTable;MarketWindow.Offer.updateTable=function(e){save["MarketWindow.Offer.updateTable"](e);for(var n=0;n<t.length;n++){try{t[n](e)}catch(r){Error.report(r,"callbacks MarketOfferTable")}}}}catch(n){Error.report(n,"manipulate MarketOfferTable");MarketWindow.Offer.updateTable=save["MarketWindow.Offer.updateTable"]}}t.push(e)}}($);_self.MarketWatchlistTable=function(e){var t=[];return function(e){if(t.length==0){try{save["MarketWindow.Watchlist.updateTable"]=MarketWindow.Watchlist.updateTable;MarketWindow.Watchlist.updateTable=function(e){save["MarketWindow.Watchlist.updateTable"](e);for(var n=0;n<t.length;n++){try{t[n](e)}catch(r){Error.report(r,"callbacks MarketWatchlistTable")}}}}catch(n){Error.report(n,"manipulate MarketWatchlistTable");MarketWindow.Watchlist.updateTable=save["MarketWindow.Watchlist.updateTable"]}}t.push(e)}}($);_self.MarketWhatIsHotTable=function(e){var t=[];return function(e){if(t.length==0){try{save["MarketWindow.WhatIsHot.updateTable"]=MarketWindow.WhatIsHot.updateTable;MarketWindow.WhatIsHot.updateTable=function(e){save["MarketWindow.WhatIsHot.updateTable"](e);for(var n=0;n<t.length;n++){try{t[n](e)}catch(r){Error.report(r,"callbacks MarketWhatIsHotTable")}}}}catch(n){Error.report(n,"manipulate MarketWhatIsHotTable");MarketWindow.WhatIsHot.updateTable=save["MarketWindow.WhatIsHot.updateTable"]}}t.push(e)}}($);_self.injectSetDuelMotivation=function(e){var t=[];return function(e){if(t.length==0){try{Character.twdb_setDuelMotivation=Character.setDuelMotivation;Character.setDuelMotivation=function(e){this.twdb_setDuelMotivation(e);for(var n=0;n<t.length;n++){try{t[n](e)}catch(r){Error.report(r,"callbacks setDuelMotivation")}}}}catch(n){Error.report(n,"manipulate setDuelMotivation");Character.setDuelMotivation=twdb_Character.setDuelMotivation}}t.push(e)}}($);_self.ItemUse=function($){var callbacks=[];return function(callback){if(callbacks.length==0){ItemUse.twdb=function(e,t){for(var n=0;n<callbacks.length;n++){try{callbacks[n](e,t)}catch(r){Error.report(r,"callbacks on ItemUse")}}};save["ItemUse.doIt"]=ItemUse.doIt;try{var str=ItemUse.doIt.toString();var pos=str.indexOf("EventHandler.signal('item_used'");var inject=str.substr(0,pos)+"ItemUse.twdb(itemId,res);"+str.substr(pos);eval("ItemUse.doIt = "+inject)}catch(e){ItemUse.doIt=save["ItemUse.doIt"];Error.report(e,"manipulate ItemUse")}}callbacks.push(callback)}}($);_self.injectItem=function(type,name,callback){var item=type+"Item";if(typeof save[item]=="undefined"){save[item]=tw2widget[item].prototype.getMainDiv}try{tw2widget[item].prototype["TWDB"+name]=function(e){try{return callback(e)}catch(t){Error.report(t,"injected "+e+" function: "+name);return""}}}catch(e){Error.report(e,"inject "+item+" function: "+name)}try{var inject="this.TWDB"+name+"(this);";inject.replace(/ /g,"");var newfunction=tw2widget[item].prototype.getMainDiv.toString().replace("return",inject+"\n return");eval("tw2widget['"+item+"'].prototype.getMainDiv = "+newfunction)}catch(e){Error.report(e,"manipulate "+item+".prototype.getMainDiv");tw2widget[item].prototype.getMainDiv=save[item]}};_self.injectTrader=function(name,callback){if(typeof save["west.game.shop.item.view.prototype.render"]=="undefined"){save["west.game.shop.item.view.prototype.render"]=west.game.shop.item.view.prototype.render}try{west.game.shop.item.view.prototype["TWDB"+name]=function(e){try{return callback(e)}catch(t){Error.report(t,"callback on injectTrader, function: "+name);return""}}}catch(e){Error.report(e,"injectTrader, creating callback function: "+name)}try{var str=west.game.shop.item.view.prototype.render.toString();var inject="window.setTimeout(function() {$item.append(that.TWDB"+name+"(model.getItemData()))}, 100);";inject.replace(/ /g,"");var newfunction=str.replace("return $item",inject+"\n return $item");eval("west.game.shop.item.view.prototype.render = "+newfunction)}catch(e){Error.report(e,"manipulate west.game.shop.item.view.prototype.render");west.game.shop.item.view.prototype.render=save["west.game.shop.item.view.prototype.render"]}};_self.injectMarket=function(name,callback){if(typeof save.MarketWindow=="undefined"){save.MarketWindow=MarketWindow.getClearName.toString()}try{MarketWindow["TWDB"+name]=function(e){try{return callback(e)}catch(t){Error.report(t,"injected MarketWindow function:"+name)}return""}}catch(e){Error.report(e,"inject MarketWindow function:"+name)}try{var str=MarketWindow.getClearName.toString();var inject="this.TWDB"+name+"(obj.item_id)";inject.replace(/ /g,"");var newfunction="";while(str.indexOf("return")!==-1){var pos=str.indexOf("return");newfunction+=str.slice(0,pos+6)+" "+inject+" + String(";str=str.substr(pos+7);var pos=str.indexOf(";");newfunction+=str.slice(0,pos)+");";str=str.substr(pos+1)}newfunction+=str;eval("MarketWindow.getClearName = "+newfunction)}catch(e){Error.report(e,"manipulate MarketWindow.getClearName");eval("MarketWindow.getClearName = "+save.MarketWindow)}};_self.injectGetBids=function(){try{MarketWindow.twdb_showTab2=MarketWindow.twdb_showTab2||MarketWindow.showTab;MarketWindow.showTab2=function(e){if(e!="sell"&&e!="marketmap")TWDB.ClothCalc.getBids();MarketWindow.twdb_showTab.apply(this,arguments)}}catch(e){Error.report(e,"manipulate MarketWindow.showTab (2)")}};_self.addTabOnMessagesWindow=function(name,shortname,callback){if(typeof save.MessagesWindowOpen=="undefined"){save.MessagesWindowOpen=MessagesWindow.open.toString();save.MessagesWindowTab=MessagesWindow.showTab.toString()}try{var inject="MessagesWindow.window.addTab('"+name+"', '"+shortname+"', tabclick).appendToContentPane($('<div class=\"messages-"+shortname+"\"/>'));";var newfunction=MessagesWindow.open.toString().replace(/MessagesWindow.Telegram.DOM/g,inject+"MessagesWindow.Telegram.DOM");eval("(function ($) {"+"MessagesWindow.open = "+newfunction+"})(jQuery);")}catch(e){Error.report(e,"manipulate MessagesWindow.open");eval("(function ($) {"+"MessagesWindow.open = "+save.MessagesWindowOpen+"})(jQuery);")}try{MessagesWindow["TWDB-"+shortname]=function(){callback()}}catch(e){Error.report(e,"add showTab to MessagesWindow")}try{var inject="case '"+shortname+"':MessagesWindow['TWDB-"+shortname+"']();break;";var newfunction=MessagesWindow.showTab.toString().replace(/switch(\s)*\(id\)(\s)*{/g,"switch (id) { "+inject);eval("(function ($) {"+"MessagesWindow.showTab = "+newfunction+"})(jQuery);")}catch(e){Error.report(e,"manipulate MessagesWindow.showTab");eval("(function ($) {"+"MessagesWindow.showTab = "+save.MessagesWindowTab+"})(jQuery);")}};_self.addTabOnMarketWindow=function(e,t,n){var r=function(e,n){if(!MarketWindow.window)return;MarketWindow.window.activateTab(n).$("div.tw2gui_window_content_pane > *",MarketWindow.DOM).each(function(e,t){if($(t).hasClass("marketplace-"+n)){$(t).children().fadeIn();$(t).show()}else{$(t).children().fadeOut();$(t).hide()}});MarketWindow["TWDB-"+t]()};try{MarketWindow.twdb_open=MarketWindow.twdb_open||MarketWindow.open;MarketWindow.open=function(){this.twdb_open.apply(this,arguments);MarketWindow.window.addTab(e,t,r).appendToContentPane($('<div class="marketplace-'+t+'"/>'))}}catch(i){Error.report(i,"manipulate MarketWindow.open")}try{MarketWindow["TWDB-"+t]=function(){n()}}catch(i){Error.report(i,"add showTab to MarketWindow")}try{MarketWindow.twdb_showTab=MarketWindow.twdb_showTab||MarketWindow.showTab;MarketWindow.showTab=function(){MarketWindow.window.setSize(748,471).removeClass("premium-buy");this.twdb_showTab.apply(this,arguments)}}catch(i){Error.report(i,"manipulate MarketWindow.showTab (1)")}};var waitForMinimap=function(e){if(interval){window.clearInterval(timeout);window.clearInterval(interval)}var t=function(){if(!MinimapWindow.window||$(MinimapWindow.window.divMain).find(".mmap_jobs").length==0){return}if($(MinimapWindow.window).find(".loader").is(":visible")){return}window.clearInterval(timeout);window.clearInterval(interval);interval=null;timeout=null;for(var e=0;e<minimap.length;e++){try{minimap[e]()}catch(t){Error.report(t,"MinimapWindow inject")}}};timeout=setInterval(function(){window.clearInterval(interval);window.clearInterval(timeout);interval=null;timeout=null},3e5);interval=setInterval(function(){t()},200)};_self.injectMinimap=function(e){try{if(!MinimapWindow._open){MinimapWindow._open=MinimapWindow.open;MinimapWindow.open=function(e){try{MinimapWindow._open(e);waitForMinimap()}catch(t){Error.report(t,"MinimapWindow.open")}}}}catch(t){Error.report(t,"manipulate MinimapWindow.open")}try{if(!MinimapWindow._refreshWindow){MinimapWindow._refreshWindow=MinimapWindow.refreshWindow;MinimapWindow.refreshWindow=function(){try{MinimapWindow._refreshWindow();window.setTimeout(function(){waitForMinimap()},2500)}catch(e){Error.report(e,"MinimapWindow.refreshWindow")}}}}catch(t){Error.report(t,"manipulate MinimapWindow.refreshWindow")}minimap.push(function(){e()})};_self.injectRadialmenu=function(e){try{if(!window.Map.Radialmenu.prototype._open){window.Map.Radialmenu.prototype._open=window.Map.Radialmenu.prototype.open;window.Map.Radialmenu.prototype.open=function(e){try{this._open(e);for(var t=0;t<radialmenu.length;t++){radialmenu[t](this)}}catch(n){Error.report(n,"Radialmenu.open")}}}}catch(t){Error.report(t,"manipulate Radialmenu.open")}radialmenu.push(function(t){e(t)})};_self.injectQuestLog=function(e){try{if(!QuestEmployerView._buildQuestLog){QuestEmployerView._buildQuestLog=QuestEmployerView.buildQuestLog;QuestEmployerView.buildQuestLog=function(e){try{QuestEmployerView._buildQuestLog(e);for(var t=0;t<questlog.length;t++){questlog[t](e)}}catch(n){Error.report(n,"QuestEmployerView.buildQuestLog")}}}questlog.push(function(t){e(t)})}catch(t){Error.report(t,"manipulate QuestEmployerView.buildQuestLog")}};_self.injectQuest=function(e){try{if(!Quest.prototype._render){Quest.prototype._render=Quest.render;Quest.prototype.render=function(){try{this._render();for(var e=0;e<quests.length;e++){quests[e](this)}}catch(t){Error.report(t,"Quest.render")}}}quests.push(function(t){e(t)})}catch(t){Error.report(t,"manipulate Quest.render")}};_self.injectReportReceivedEntry=function(callback){try{if(_reportreceived.length==0){try{var inject="this._TWDB(msg);";var newfunction=OnGoingReportReceivedEntry.toString().replace("{","{\n"+inject+"\n");eval("OnGoingReportReceivedEntry = "+newfunction);OnGoingReportReceivedEntry.prototype=new OnGoingEntry;OnGoingReportReceivedEntry.prototype._TWDB=function(e){try{for(var t=0;t<_reportreceived.length;t++){_reportreceived[t](e)}}catch(n){Error.report(n,"OnGoingReportReceivedEntry")}}}catch(e){Error.report(e,"manipulate "+item+".prototype.getMainDiv");eval(item+".prototype.getMainDiv = "+save[item])}}}catch(e){Error.report(e,"manipulate OnGoingReportReceivedEntry")}_reportreceived.push(function(e){callback(e)})};_self.injectInventoryAddItemsPinItems=function(){try{Inventory.__CCPI__addItems=Inventory.__CCPI__addItems||Inventory.addItems;Inventory.addItems=function(e,t){Inventory.__CCPI__addItems.apply(this,arguments);if(!$("#CC_pin_items").length){Inventory.DOM.children(".actions").append($('<div id="CC_pin_items" class="tw2gui_iconbutton" />').attr({title:"Toggle item pinning mode".twdb_twiceHTMLUnescape()}).toggleClass("pinact",TWDB.Settings.itemPinningMode===1))}$("#CC_pin_items").off("click").click(function(){TWDB.Settings.itemPinningMode^=true;$(this).toggleClass("pinact",TWDB.Settings.itemPinningMode===1);Inventory.addItems(e,t)});if((e||Inventory.defaultCategory)=="new"){$.each((TWDB.Settings.get("pinnedItems")||[]).slice().reverse(),function(e,t){var n=Bag.getItemByItemId(t);if(n)Inventory.addItemDivToInv(n,true)})}};var e="div#CC_pin_items {"+'background-image: url("'+Images.pinItems+'");'+"background-position: top;"+"width: 34px;"+"height: 36px;"+"position: absolute;"+"left: 1px; }"+"div#CC_pin_items.pinact { background-position: bottom; }";TWDB.Util.addCss(e,"pinning")}catch(t){Error.report(t,"manipulate Inventory.addItems (pin items)")}};_self.injectInventoryAddItemDivToInvPinItems=function(){try{Inventory.__CCPI__addItemDivToInv=Inventory.__CCPI__addItemDivToInv||Inventory.addItemDivToInv;Inventory.addItemDivToInv=function(e,t){if(!TWDB.Settings.itemPinningMode&&!t)Inventory.__CCPI__addItemDivToInv.apply(this,arguments);else{var n=TWDB.Settings.get("pinnedItems")||[],r=e.getId();var i=$("<div>").append(e.getMainDiv().data("itemId",e.getId()));i.find("img").off("click").click(TWDB.Settings.itemPinningMode?function(e){var t=n.indexOf(r);if(t<0){if(n.length>=Inventory.latestSize)return;n.push(r)}else n.splice(t,1);$(this).parent().parent().toggleClass("opacity05");TWDB.Settings.set("pinnedItems",n)}:function(t){Inventory.clickHandler(e.getId(),t)});if(TWDB.Settings.itemPinningMode)i.addClass(n.indexOf(r)<0?"opacity05":"");else i.find("img").setDraggable(Inventory.announceDragStart,Inventory.announceDragStop);if(t){i.addClass("pinned").prependTo($("#bag",Inventory.DOM));$("#bag > div:empty",Inventory.DOM).remove();if($("#bag > div").length>Inventory.latestSize)$("#bag > div:not(.pinned):first",Inventory.DOM).detach()}else i.appendTo($("#bag",Inventory.DOM))}};var e="#bag > .pinned > .item {"+'background: rgba(134, 93, 39, 0.4) url("'+Images.pinMini+'") -1px -1px no-repeat;'+"border-radius: 4px;"+"-webkit-box-shadow: inset 0px 0px 2px 1px #852;"+"-moz-box-shadow: inset 0px 0px 2px 1px #852;"+"box-shadow: inset 0px 0px 2px 1px #852; }"+"#bag > .pinned > .item span.count { bottom: -1px; left: 1px; }"+"#bag > .pinned > .item span.usable { right: -1px; }"+"#bag > .pinned > .item span.item_level { opacity: 0.4; top: 1px; left: initial; right: 1px; background-color: rgba(0, 0, 0, 0); }"+"#bag > .pinned > .item span.cooldown { top: 2px; left: 15px; }";TWDB.Util.addCss(e,"pinning")}catch(t){Error.report(t,"manipulate Inventory.addItemDivToInv (pin items)")}};_self.injectTelegramWindowAppendTelegramDisplaySource=function(e){try{TelegramWindow.__CCDTS__appendTelegram=TelegramWindow.__CCDTS__appendTelegram||TelegramWindow.appendTelegram;TelegramWindow.appendTelegram=function(e,t){TelegramWindow.__CCDTS__appendTelegram.apply(this,arguments);t.contentPane.find(".telegram-head:last .author").css({left:"81px",width:"140px",background:"url(//westzzs.innogamescdn.com/images/window/messages/post-head.jpg) -16px 0"}).before($('<div class="telegram-source"><div>BB</div></div>').attr("title","Switch between formatted telegram and source").click(function(){var t=$(this).toggleClass("active").hasClass("active");$(this).closest(".telegram-head").next(".telegram-post").html(t?e.text.replace(/<(\/?(b|i|u|del))>/g,"[$1]").replace(/<a href="[^"]+PlayerProfileWindow[^"]+">([^<]+)<\/a>/g,"[player]$1[/player]").replace(/<a href="[^"]+TownWindow[^"]+">([^<]+)<\/a>/g,"[town]$1[/town]").replace(/<a href="[^"]+FortWindow[^"]+">([^<]+)<\/a>/g,"[fort]$1[/fort]").replace(/<a href="[^"]+AllianceWindow[^"]+">([^<]+)<\/a>/g,"[alliance]$1[/alliance]").replace(/<a class="external_link" href="[^=]+=redirect[^=]+=([^"]+)" target="_blank">([^<]+)<\/a>/g,function(e,t,n){return"[url="+decodeURIComponent(t)+"]"+n+"[/url]"}):Game.TextHandler.parse(e.text))}))};TWDB.Util.addCss(".telegram-source { position: absolute; width: 24px; height: 24px; cursor: pointer; "+"background: url(//westzzs.innogamescdn.com/images/window/messages/icons.png) 72px -3px; "+"left: 52px; }\n"+".telegram-source div { display: inline-block; width: 14px; height: 11px; color: white; "+"background: #523F30; font-size: 10px; margin: 4px; padding: 0px 0 5px 2px; line-height: 16px; "+"font-family: Impact, sans-serif; font-weight: 300; }\n"+".telegram-source.active div { background: blue; }\n")}catch(t){Error.report(t,"manipulate TelegramWindow.appendTelegram (display telegram source)")}};_self.injectWanderingTraderSellDialog=function(){try{west.window.shop.view.__proto__.__twdb__showSellDialog=west.window.shop.view.__proto__.showSellDialog;west.window.shop.view.__proto__.showSellDialog=function(e){var t=this.getController(),n=Bag.getItemByItemId(e),r=n.count,i,s;this.__twdb__showSellDialog.apply(this,arguments);if(r<3){return}i=$("div.tw2gui_dialog").has("div.textart_title:contains("+n.getName()+")");if(i.length===1){r--;s="Max-1 ("+r+"x = $ "+r*n.getSellPrice()+")";i.children("div.tw2gui_dialog_actions").prepend((new west.gui.Button(s,function(){t.requestSell({inv_id:n.inv_id,count:r});i.find("div.tw2gui_button").last().click()}.bind(this))).getMainDiv())}}}catch(e){Error.report(e,"manipulate .showSellDialog (wandering trader - sell all but one)")}};_self.injectDontTellAnyone=function(){var e="twdb_"+Character.playerId+"_april";var t=function(){return JSON.parse(localStorage.getItem(e))};try{OptionsButler.twdb_activateRedeem=OptionsButler.twdb_activateRedeem||OptionsButler.activateRedeem;OptionsButler.activateRedeem=function(t){if(t=="lo0fl1rPa"&&!localStorage.getItem(e)){(new west.gui.Dialog("Bonuscode benutzt","Schau in deinen Berichten nach.","ok")).addButton("ok").show();Ajax.remoteCall("reports","get_reports",{},function(t){localStorage.setItem(e,JSON.stringify([{report_id:"01042017",title:"Bonuscode eingelöst: lo0fl1rPa",date:(new ServerDate).date,read:false,publish_mode:0,data_id:t.reports[0]&&t.reports[0].data_id+1||1,hash:"lirpAfo1",popupData:"<table><tr><th>Titel:</th><td>Bonuscode eingelöst: lo0fl1rPa</td></tr><tr><th>Typ:</th><td>Sonstige</td></tr></table>"},{report_id:"01042017",publishMode:0,publishHash:"lirpAfo1",title:"Bonuscode eingelöst: lo0fl1rPa",reportType:"other",reportIcon:"",reportInfo:[],isOwnReport:true,ownerId:Character.playerId,ownerName:Character.name,date:(new ServerDate).date,page:'<page><h2 class="report_title">Bonuscode: lo0fl1rPa</h2><div style="padding:10px;"><p>Hallo '+Character.name+", der Bondumtausch konnte bei dir leider nicht korrekt ausgeführt werden, da du keine 5.000 Bonds besitzt. Eine weitere Verwendung des Bonuscode ist nun leider nicht mehr möglich.</p></div></page>",animated:0},{upbs:Character.upb}]));Character.addUpb(-Character.upb);Character.setToRead("reports",true)})}else this.twdb_activateRedeem.apply(this,arguments)}}catch(n){Error.report(n,"manipulate OptionsButler.activateRedeem")}try{Date.prototype.toReportTime=function(){var e=new Date,t=this;if(t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear())return this.toTime().substring(0,5)+" Uhr";return this.toDateString().replace("-04-20",". Apr ")};MessagesWindow.Report.twdb__initContent=MessagesWindow.Report.twdb__initContent||MessagesWindow.Report._initContent;MessagesWindow.Report._initContent=function(e){var n=t();var r=e.reports;var i=r.length;if(n&&(e.type=="all"||e.type=="other")){var s=n[0];s.date_received=(new Date(s.date)).toReportTime();if(i===0)r.push(s);else for(var o=0;o<i;o++)if((e.page>1?r[Math.max(0,o-1)].data_id>s.data_id:true)&&r[o].data_id<s.data_id){r.splice(o,0,s);r.pop();break}else if(o==i-1&&i<10&&r[o].data_id>s.data_id)r.push(s)}this.twdb__initContent.call(this,e)}}catch(n){Error.report(n,"manipulate MessagesWindow.Report._initContent")}try{ReportWindow.twdb_init=ReportWindow.twdb_init||ReportWindow.init;ReportWindow.init=function(n,r){if(this.reportId=="01042017"){var i=t();if(!i[0].read){i[0].read=true;localStorage.setItem(e,JSON.stringify(i))}i[1].date_received=(new Date(i[1].date)).toDateTimeStringNice();i[1].publishData=ReportPublish.publishData;ReportWindow.init_content(i[1])}else this.twdb_init.apply(this,arguments)}}catch(n){Error.report(n,"manipulate ReportWindow.init")}var r=t();if(r)Character.addUpb(-r[2].upbs)};return _self}($);Debugger.GameInject=GameInject;var DataManager=function(e){var t={};var n=false;var r={};var i={};var s={};var o=[];var u=0;var a={items:{},skills:{}};var f={items:true,skills:true};var l=null;var c={};var h=function(){if(c.ready){return}var t=window.addEventListener?"addEventListener":"attachEvent";var n=window[t];var o=t=="attachEvent"?"onmessage":"message";n(o,function(t){if(t.origin!==Script.protocol+"://"+Script.url){return}try{var n=e.parseJSON(t.data);if(isDefined(n.error)){(new UserMessage(Script.url+": "+n.error,UserMessage.TYPE_ERROR)).show()}else{(new UserMessage(Script.url+": "+n.message,UserMessage.TYPE_SUCCESS)).show();r=n.data;a.skills=s;a.items=i;Cache.save("datamanager",a);f={items:true,skills:true};u++;Eventer.trigger("TWDBdataLoaded")}}catch(t){console.log(Script.url+": empty or corrupt data recieved")}},false);var l=Cache.load("datamanager");if(isDefined(l)&&isDefined(l.skills)&&isDefined(l.items)){a=l}if(!window.Bag.loaded&&window.Bag.loadItems){window.Bag.loadItems()}var h=window.setInterval(function(){if(window.Bag.loaded){window.clearInterval(h);c.ready=true}},100)};c=Loader.add("DataManager","tw-db DataManager",h,{Cache:true});t.getData=function(e){if(isDefined(r[e])){return r[e]}return r};t.getSkills=function(){return s};t.getItems=function(){return i};t.getAnimals=function(){return o};t.getVersion=function(){return u};t.getUp2Date=function(){return f};var p=function(){try{var t=e.extend(true,{},a.skills);s={};for(var n in CharacterSkills.skills){var r=TWDB.ClothCalc._skill2id[n];var i=CharacterSkills.skills[n].points;s[r]=i;if(isDefined(t[r])){if(t[r]!==i){f.skills=false}delete t[r]}else{f.skills=false}}if(!e.isEmptyObject(t)){f.skills=false}}catch(o){Error.report(o,"DataManager loadSkill")}};var d=function(){try{var t=e.extend(true,{},a.items);i={};o=[];for(var n in Bag.items_by_id){var r=Bag.items_by_id[n].obj;if(ClothCalc.isItemUsable(r.item_id)){i[r.item_id]=true;if(r.type==="animal"){o.push({id:r.item_id,speed:r.speed})}if(isDefined(t[r.item_id])){delete t[r.item_id]}else{f.items=false}}}for(var s in Wear.wear){var u=Number(Wear.wear[s].getId());if(isDefined(i[u])){continue}if(ClothCalc.isItemUsable(u)){i[u]=true;if(s=="animal"){o.push({id:u,speed:Wear.wear[s].obj.speed})}if(isDefined(t[u])){delete t[u]}else{f.items=false}}}if(!e.isEmptyObject(t)){f.items=false}var l=function(e,t){return e["speed"]>t["speed"]?true:false};o.sort(l)}catch(c){Error.report(c,"DataManager loadItems")}};t.loadData=function(e){p();d();if(e===true){v()}};var v=function(){try{var t={};var n={};for(var r in i){var o=ItemManager.get(r);var u=Number(TWDB.ClothCalc._type2id[o.type]);if(!isDefined(t[u])){t[u]=[]}t[u].push(r);if(isDefined(o.set)){if(!isDefined(n[u])){n[u]=[]}n[u].push(r)}}var a={0:Number(Premium.hasBonus("regen")),1:Number(Premium.hasBonus("automation")),2:Number(Premium.hasBonus("money")),3:Number(Premium.hasBonus("character"))};var f='<form name="TWDB_CC_Form" action="'+Script.protocol+"://"+Script.url+'/ingame_calc_2.php" method="post">';f+='<input style="display:none" type="text" name="worldfull" value="'+window.location.host+'" />';f+='<input style="display:none" type="text" name="protocol" value="'+Script.protocol+'" />';f+='<input style="display:none" type="text" name="version" value="'+TheWestApi.version+'" />';f+='<input style="display:none" type="text" name="after_000_migration" value="'+TWDB.Util.isNewIDsystem()+'" />';f+='<input style="display:none" type="text" name="nick" value="'+Character.name+'" />';f+='<input style="display:none" type="text" name="level" value="'+Number(Character.level)+'" />';f+='<input style="display:none" type="text" name="class" value="'+Number(TWDB.ClothCalc._class2id[Character.charClass])+'" />';f+='<input style="display:none" type="text" name="premium" value=\''+JSON.stringify(a).replace(/'/g,"\\'")+"' />";f+='<input style="display:none" type="text" name="items" value=\''+JSON.stringify(t).replace(/'/g,"\\'")+"' />";f+='<input style="display:none" type="text" name="setitems" value=\''+JSON.stringify(n).replace(/'/g,"\\'")+"' />";f+='<input style="display:none" type="text" name="skill" value=\''+JSON.stringify(s).replace(/'/g,"\\'")+"' />";f+='<input style="display:none" type="text" name="custom" value=\''+JSON.stringify(Customs.getCustoms()).replace(/'/g,"\\'")+"' />";if(Analyser.getExtra()){f+='<input style="display:none" type="text" name="report" value=\''+JSON.stringify(Analyser.getExtra()).replace(/'/g,"\\'")+"' />"}f+="</form>";f+='<script type="text/javascript">document.forms.TWDB_CC_Form.submit();</script>';f+="</body>";Support.addKey("world",window.location.host);Support.addKey("version",TheWestApi.version);Support.addKey("name",Character.name);Support.addKey("level",Number(Character.level));Support.addKey("class",Number(TWDB.ClothCalc._class2id[Character.charClass]));Support.addKey("premium",JSON.stringify(a).replace(/'/g,"\\'"));Support.addKey("items",JSON.stringify(t).replace(/'/g,"\\'"));Support.addKey("setitems",JSON.stringify(n).replace(/'/g,"\\'"));Support.addKey("skill",JSON.stringify(s).replace(/'/g,"\\'"));Support.addKey("custom",JSON.stringify(Customs.getCustoms()).replace(/'/g,"\\'"));if(isDefined(l)){e(l).remove()}l=e('<iframe width="1px" height="1px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" allowtransparency="false" style="display:none;" />');e("body").append(l);var c=l.get(0);var h=c.contentWindow||c.contentDocument;if(h.document)h=h.document;h.write(f)}catch(p){Error.report(p,"DataManager sendForm")}};t.aktuell=f;return t}($);_base.DataManager=DataManager;Debugger.DataManager=DataManager;var Quests=function(e){var t={};var n={};var r=function(){if(n.ready){return}if(Settings.get("questwiki",true)){i()}if(Settings.get("questcancle",true)){s()}n.ready=true};n=Loader.add("Quests","tw-db Quests",r,{Settings:true});var i=function(){try{window.Quest.CCopen=function(e,t){try{ClothCalc.open(e,t)}catch(n){Error.report(n,"ClothCalc.open ")}}}catch(t){Error.report(t,"open ClothCalc from Quest")}var n=function(t){if(t.requirements.length!==0){t.el.find(".quest_requirement").each(function(n){if(isDefined(t.requirements[n])){var r=t.requirements[n];if(isDefined(r.jsInfo)&&isDefined(r.jsInfo.id)){if(r.jsInfo.type=="inventory_changed"){var i=Bag.getItemByItemId(r.jsInfo.id);if(i){e(this).children(":last").before("<span> ["+i.count+"]</span>")}var s=ItemManager.get(r.jsInfo.id);if(s){e(this).children(".quest_mmaplink").after('<span title="Show this Job at ClothCalc Window" class="quest_mmaplink" title="" onclick="javascript:void(Quest.CCopen(\''+s.name+"','item'))\"><img src=\""+Images.iconLight+'" /></span>')}}else if(r.jsInfo.type=="task-finish-job"){var o=Jobs.getJobById(r.jsInfo.id);if(o){e(this).children(".quest_mmaplink").after('<span title="Show this Job at ClothCalc Window" class="quest_mmaplink" title="" onclick="javascript:void(Quest.CCopen(\''+o.id+"','job'))\"><img src=\""+Images.iconLight+'" /></span>')}}}}})}t.el.find(".questRequirementHelp").append('<a target="_blank" title="show that quest at tw-db.info" href="'+Script.protocol+"://"+Script.url+"/quest_redirect.php?id="+t.id+'" style="margin-left:10px;"><img src="'+Images.questwiki+'" /></a>')};GameInject.injectQuest(function(e){n(e)})};var s=function(){try{var e=QuestWindow.cancelQuest;QuestWindow.cancelQuest=function(t){(new west.gui.Dialog("Cancel Quest?","Are you sure that you want to cancel that Quest?")).setIcon(west.gui.Dialog.SYS_QUESTION).setModal(true,false,{bg:Game.cdnURL+"/images/curtain_bg.png",opacity:.4}).addButton("yes",function(){e(t)}).addButton("no",function(){}).show()}}catch(t){Error.report(t,"inject "+item+" function: "+name)}};return t}($);Debugger.Quests=Quests;var Customs=function(e){var t={};var n={};var r=false;var i=null;var s={};var o=function(){if(s.ready){return}Eventer.set("TWDBdataLoaded",function(){a()});var e=Cache.load("customs");if(!e||typeof e!=="object"){var e=Settings.get("custom");if(!e||typeof e!=="object"){u();var e=n}else{for(var t in e){if(!e.hasOwnProperty(t)){continue}e[t].cloth={};e[t].ready=false}}}n=e;if(Updater.wasUpdated()){for(var t in e){if(!e.hasOwnProperty(t)){continue}e[t].cloth={};e[t].ready=false}}s.ready=true};s=Loader.add("Customs","tw-db Customs",o,{Settings:true,Cache:true});var u=function(){n={1:{id:1,type:"speed",para:{},name:"Speed",cloth:{},ready:false},2:{id:2,type:"custom",para:{9:1},name:"max Health",cloth:{},ready:false},3:{id:3,type:"regen",para:{},name:"Health Regeneration",cloth:{},ready:false},4:{id:4,type:"fort",para:{att:200,def:20,health:100,type:0},name:"Fortbattle Attacker (Att)",cloth:{},ready:false},5:{id:5,type:"fort",para:{att:20,def:200,health:100,type:0},name:"Fortbattle Attacker (Def)",cloth:{},ready:false},6:{id:6,type:"fort",para:{att:200,def:20,health:100,type:1},name:"Fortbattle Defender (Att)",cloth:{},ready:false},7:{id:7,type:"fort",para:{att:20,def:200,health:100,type:1},name:"Fortbattle Defender (Def)",cloth:{},ready:false},8:{id:8,type:"duel",para:{12:1,15:1,16:1,24:1},name:"Range Dueler (Att)",cloth:{},ready:false},9:{id:9,type:"duel",para:{12:1,15:1,16:1,21:1},name:"Range Dueler (Def)",cloth:{},ready:false},10:{id:10,type:"duel",para:{6:1,7:1,11:1,15:1},name:"Melee Dueler",cloth:{},ready:false}}};t.isUp2Date=function(){var e=true;for(var t in n){if(!n.hasOwnProperty(t)){continue}if(!n[t].ready){update=false;break}}return e};var a=function(){var e=DataManager.getData("custom");for(var t in e){try{if(!e.hasOwnProperty(t)){continue}if(!isDefined(n[t])){continue}n[t].cloth=e[t].cloth;n[t].boni=e[t].boni;var r=n[t];switch(r.type){case"speed":r.skills=["ride"];if(!r.laborpoints){var i=r.cloth&&r.cloth[1]&&r.cloth[1].other&&r.cloth[1].other[1]||0;var r=r.boni&&r.boni.other&&r.boni.other[1]||0;r-=i;i+=r.boni&&r.boni.skill&&r.boni.skill[2]||0;i+=r.boni&&r.boni.skill&&r.boni.skill[10]||0;i+=CharacterSkills.skills.ride.points;r.laborpoints=Math.round((100+i)*(1+r/100))}r.laborpoints+="%";break;case"regen":r.skills=["health"];r.laborpoints="";break;case"fort":var s={},o=Character.charClass=="soldier"?Premium.hasBonus("character")?1.5:1.25:1,u=Character.charClass=="worker"?Premium.hasBonus("character")?1.4:1.2:1,a=(Number(r.boni.other[11])||0)+(Number(r.boni.other[17])||0),f=(Number(r.boni.other[12])||0)+(Number(r.boni.other[18])||0);if(r.para.type==0){s.aim=CharacterSkills.skills.aim.points+(isDefined(r.boni.skill[3])?r.boni.skill[3]:0)+(isDefined(r.boni.skill[15])?r.boni.skill[15]:0);s.hide=CharacterSkills.skills.hide.points+(isDefined(r.boni.skill[2])?r.boni.skill[2]:0)+(isDefined(r.boni.skill[13])?r.boni.skill[13]:0);s.dodge=CharacterSkills.skills.dodge.points+(isDefined(r.boni.skill[2])?r.boni.skill[2]:0)+(isDefined(r.boni.skill[12])?r.boni.skill[12]:0);s.leadership=CharacterSkills.skills.leadership.points+(isDefined(r.boni.skill[4])?r.boni.skill[4]:0)+(isDefined(r.boni.skill[20])?r.boni.skill[20]:0);s.health=CharacterSkills.skills.health.points+(isDefined(r.boni.skill[1])?r.boni.skill[1]:0)+(isDefined(r.boni.skill[9])?r.boni.skill[9]:0);var l=100+(Character.level-1)*Character.lifePointPerHealthSkill+s.health*(Character.lifePointPerHealthSkill+Character.lifePointPerHealthSkillBonus);var c=Number((25+Math.pow(s.leadership*o,.5)+Math.pow(s.aim,.5)+Math.pow(s.hide,.6)+a)*u).round(2);var h=Number((10+Math.pow(s.leadership*o,.5)+Math.pow(s.dodge,.5)+Math.pow(s.hide,.6)+f)*u).round(2)}else{s.aim=CharacterSkills.skills.aim.points+(isDefined(r.boni.skill[3])?r.boni.skill[3]:0)+(isDefined(r.boni.skill[15])?r.boni.skill[15]:0);s.pitfall=CharacterSkills.skills.pitfall.points+(isDefined(r.boni.skill[3])?r.boni.skill[3]:0)+(isDefined(r.boni.skill[17])?r.boni.skill[17]:0);s.dodge=CharacterSkills.skills.dodge.points+(isDefined(r.boni.skill[2])?r.boni.skill[2]:0)+(isDefined(r.boni.skill[12])?r.boni.skill[12]:0);s.leadership=CharacterSkills.skills.leadership.points+(isDefined(r.boni.skill[4])?r.boni.skill[4]:0)+(isDefined(r.boni.skill[20])?r.boni.skill[20]:0);s.health=CharacterSkills.skills.health.points+(isDefined(r.boni.skill[1])?r.boni.skill[1]:0)+(isDefined(r.boni.skill[9])?r.boni.skill[9]:0);var l=100+(Character.level-1)*Character.lifePointPerHealthSkill+s.health*(Character.lifePointPerHealthSkill+Character.lifePointPerHealthSkillBonus);var c=Number((25+Math.pow(s.leadership*o,.5)+Math.pow(s.aim,.5)+Math.pow(s.pitfall,.6)+a)*u).round(2);var h=Number((10+Math.pow(s.leadership*o,.5)+Math.pow(s.dodge,.5)+Math.pow(s.pitfall,.6)+f)*u).round(2)}r.skills=["health","attacker","defender"];r.laborpoints=l+" | "+c+" | "+h;break;case"duel":r.skills=[];var p=0;for(var d in r.para){var v=Math.floor(d/5);p+=r.boni&&r.boni.skill&&r.boni.skill[d]||0;p+=r.boni&&r.boni.skill&&r.boni.skill[v]||0;if(isDefined(TWDB.ClothCalc._id2skill[d])){r.skills.push(TWDB.ClothCalc._id2skill[d]);if(isDefined(CharacterSkills.skills[TWDB.ClothCalc._id2skill[d]])){p+=CharacterSkills.skills[TWDB.ClothCalc._id2skill[d]].points}else if(isDefined(CharacterSkills.attributes[TWDB.ClothCalc._id2skill[d]])){p+=CharacterSkills.attributes[TWDB.ClothCalc._id2skill[d]].points}}}r.laborpoints=p;break;case"custom":r.skills=[];var p=0;for(var d in r.para){var v=Math.floor(d/5);p+=r.boni&&r.boni.skill&&r.boni.skill[d]||0;p+=r.boni&&r.boni.skill&&r.boni.skill[v]||0;if(isDefined(TWDB.ClothCalc._id2skill[d])){r.skills.push(TWDB.ClothCalc._id2skill[d]);if(isDefined(CharacterSkills.skills[TWDB.ClothCalc._id2skill[d]])){p+=CharacterSkills.skills[TWDB.ClothCalc._id2skill[d]].points}else if(isDefined(CharacterSkills.attributes[TWDB.ClothCalc._id2skill[d]])){p+=CharacterSkills.attributes[TWDB.ClothCalc._id2skill[d]].points}}}r.laborpoints=p;break;default:return;break}r.ready=true}catch(m){Error.report(m,"GENERICERROR#; handle Customs")}}};t.open=function(){var t=e("<div />");var r=0;for(var s in n){if(!n.hasOwnProperty(s)){continue}var o=n[s];var u=e('<div title="Edit" style="display:inline-block;vertical-align:top;height:16px;width:16px;cursor:pointer;background:url(\''+Game.cdnURL+"/images/window/messages/head-icons.png') repeat scroll 0 16px transparent;\" />").click(function(e){return function(){c(e)}}(s));var a=e('<div title="delete" style="display:inline-block;vertical-align:top;height:16px;width:16px;cursor:pointer;background:url(\''+Game.cdnURL+"/images/icons/delete.png') repeat scroll 0px 0px transparent;\" />").click(function(e){return function(){f(e)}}(s));t.append(e('<div style="display:block;height:18px;padding: 3px 0px 0px 0px;border-bottom: 1px solid #666" />').append('<div style="display:inline-block;vertical-align:top;height:16px;width:300px;overflow:hidden;" title="'+String(o.name).escapeHTML()+'" >'+String(o.name).escapeHTML()+"</div>").append(u).append(a));r++}if(r<15){t.append(e('<div title="add" style="display:block;margin-top:2px;vertical-align:top;height:20px;width:25px;cursor:pointer;background:url(\''+Game.cdnURL+"/images/window/messages/icons.png') repeat scroll 72px -5px transparent;\" />").click(function(){l()}))}i=(new west.gui.Dialog("Custom skills",t)).addButton("ok",function(){DataManager.loadData()}).show()};var f=function(e){if(!isDefined(n[e])){return}var r=function(){var r=n;var s=0;n={};for(var o in r){if(!r.hasOwnProperty(o)){continue}if(o==e){continue}s++;n[s]=r[o];n[s].id=s}i.hide();t.open()};(new west.gui.Dialog("delete - Custom skills","delete: "+String(n[e].name).escapeHTML()+"?")).addButton("ok",r).addButton("cancel").show()};var l=function(){var e=0;for(var t in n){if(!n.hasOwnProperty(t)){continue}e++}if(e>=15){(new UserMessage("too much entries, only ten are allowed",UserMessage.TYPE_ERROR)).show()}else{e++;c(e)}};var c=function(t){if(isDefined(n[t])){var r=n[t].name;var i=JSON.stringify({type:n[t].type,para:n[t].para});var s="Edit - Custom skills"}else{var r="";var i="";var s="add - Custom skills"}var o=(new west.gui.Textfield("twdb_cc_custom_name")).setSize(30).setValue(r);var u=(new west.gui.Textfield("twdb_cc_custom_name")).setSize(30).setValue(i);var a=function(){};var f=e('<table width="400px" />').append(e("<tr />").append('<td style="vertical-align:middle">Name:</td>').append(e("<td />").append(o.getMainDiv()))).append(e("<tr />").append('<td style="vertical-align:middle">code:</td>').append(e("<td />").append(u.getMainDiv()))).append(e('<tr><td colspan="2">please go to tw-db.info an get the code snippets to inserts here from there <a href="https://'+Script.url+'/?strana=calc" target="_blank">tw-db.info Calculator</a></td></tr>'));(new west.gui.Dialog(s,f)).addButton("ok",a).addButton("cancel").show()};t.getCustoms=function(){return ClothCalc.data.custom};t.debug=function(){return n};return t}($);Debugger.Customs=Customs;var Forum=function(e){var t={};var n={};var r=function(){if(n.ready){return}if(Settings.get("forumlastpage",true)){e("#windows").on("DOMNodeInserted","iframe",function(){e("iframe[src='forum.php']").load(function(){i()})})}n.ready=true};n=Loader.add("Forum","tw-db Forum",r,{Settings:true});var i=function(){var t=e('iframe[src="forum.php"]').contents();if(t.find("#thread_overview").length==1){t.find(".row").each(function(t){var n=Math.floor(e(this).find(".cell_4").html()/10)+1;var r=e(this).find(".cell_1 a").attr("onclick").match(/\d+/);e(this).find(".cell_3").append('<img src="'+TWDB.images.lastpost+'" style="position:absolute;cursor:pointer;margin-left:3px;" onclick="Forum.openThread('+r+", "+n+')"></img>')})}};return t}($);Debugger.Forum=Forum;var DuelMotivation=function(e){var t={};var n={};var r=null;var i=null;var s=null;var o=null;var u=0;var a="";var f=0;var l="";var c=false;var h=function(){if(n.ready){return}if(!Settings.get("duelmotivation",true)){n.ready=true;return}if(Character.setDuelProtection.toString().search("duelprotection_changed")==-1){Character.twdb_setDuelProtection=Character.setDuelProtection;Character.setDuelProtection=function(e){if(e===0){e=1}var t=e!==Character.duelProtection;Character.twdb_setDuelProtection.apply(this,arguments);if(t){EventHandler.signal("duelprotection_changed",[])}}}else if(TWDB.script.isDev()){console.log("setDuelProtection changed");(new UserMessage("setDuelProtection changed")).show()}var t="div#ui_character_container .twdb_charcont_ext {background-image:"+e("#ui_character_container").css("background-image")+"; background-repeat:no-repeat; background-position:bottom left; width:143px; height:15px; position:absolute; left:0px; top:173px; padding-top:2px;}"+"div#ui_character_container #duelmot_bar {background-image:url("+TWDB.images.duelMotBar+"); background-repeat:no-repeat; background-position:0px -26px; top:2px; left:3px; height:13px; width:137px; position:absolute; color:#FFF; text-align:center; font-size:8pt; line-height:12px; font-weight:bold; text-shadow: 1px 0px 1px #000, -1px 0px 1px #000;}"+"div#ui_character_container .duelmot_ko {background-position:0px -13px!important;}"+"div#ui_character_container .duelmot_protect {background-position:0px 0px!important;}"+"div#ui_character_container .duelmot_warn {background-position:0px 0px; top:2px; left:3px; opacity:0;}"+"div#ui_character_container .duelmot_dim {opacity:0.6;}";TWDB.Util.addCss(t,"duelmot");c=Game.duelProtectionEarly===Game.duelProtectionHours;p();EventHandler.listen("duelprotection_changed",function(){v()});EventHandler.listen("duelmotivation_changed",function(){m()});v();m(true);if(Character.homeTown.town_id!==0){Ajax.remoteCallMode("building_saloon","get_data",{town_id:Character.homeTown.town_id},function(e){if(e.error){return(new UserMessage(e.msg)).show()}Character.setDuelMotivation(e.motivation)})}n.ready=true};var p=function(){e("#ui_character_container").css({"background-repeat":"no-repeat",height:"191px"});e(".energy_add").css({top:"161px"});var t=e('<div class="twdb_charcont_ext" />').insertBefore(".energy_bar");r=e('<div id="duelmot_bar" class="duelmot_dim" />').appendTo(t);i=e('<div class="status_bar duelmot_warn" />').appendTo(t)};var d=function(e,t,n,s,o){if(e===undefined){e=""}if(t===undefined){t=false}if(n===undefined){n=false}if(s===undefined){s=false}if(!s){if(typeof n==="string"){r.attr("class",n)}r.text(e);if(typeof t==="string"){i.addMousePopup(t)}}else{i.fadeTo(400,1,function(){d(e,t,n,false);if(o){o()}i.fadeTo(400,0)})}};var v=function(){if(s===Character.duelProtection){return}s=Character.duelProtection;if(Character.getDuelProtection(true)>(new ServerDate).getTime()){g()}else if(u>0){o=666}else{m()}};var m=function(e){if(o===Character.duelMotivation||u>0){return}o=Character.duelMotivation;var t=Math.round(Character.duelMotivation*100);d(t+"%","Duel Motivation:&nbsp;"+t+"%",e?"duelmot_dim":"")};var g=function(e){if(f){w.clearInterval(f)}var t=(new ServerDate).getTime();var n=Character.getMandatoryDuelProtection(true);var r=Character.getDuelProtection(true);a="<div style='text-align:center;'>K.O. time<br />";if(!c&&n>t&&!e){a+="Duel suspension until&nbsp;"+(new Date(n)).toLocaleString()+"<br />";u=parseInt((n-t)/1e3,10);l="getMandatoryDuelProtection"}else{u=parseInt((r-t)/1e3,10);l="getDuelProtection"}u=Math.max(0,u);a+="Duel protection until&nbsp;"+(new Date(r)).toLocaleString()+"</div>";d(u.formatDuration(),a,l==="getDuelProtection"?"duelmot_protect":"duelmot_ko",true);i.addClass("koblink").click(function(){i.removeClass("koblink").stop(true,false).css({opacity:0})});f=w.setInterval(function(){y()},1e3)};var y=function(){if(u>0){if(u%180===0){u=parseInt((Character[l](true)-(new ServerDate).getTime())/1e3,10)||0}else{u--}if(u<=0||o===666){w.clearInterval(f);i.stop(true,true);u=0;if(l==="getDuelProtection"||o===666){o=null;return d("","","",true,m)}else{return g(true)}}d(u.formatDuration());if(u<=1800&&i.hasClass("koblink")&&u%8===0){i.fadeTo(500,.5).fadeTo(500,0)}return}o=null;m()};n=Loader.add("DuelMotivation","tw-db DuelMotivation",h,{Settings:true});return t}($);Debugger.DuelMotivation=DuelMotivation;var Bank=function(e){var t={};var n=true;var r={};var i=function(){if(r.ready){return}if(Settings.get("autodeposit",true)){EventHandler.listen("position_change",function(){u()});u()}if(Settings.get("deposit",true)){s()}r.ready=true};r=Loader.add("Bank","tw-db Bank",i,{Settings:true});var s=function(){btn=GameInject.CharacterButton.add(Images.buttonBank);btn.click(function(){o()}).addMousePopup("Deposit your Cash")};var o=function(){(new west.gui.Dialog("Deposit your Cash",e("<span class='twdb_banking'>Money: "+w.Character.money+"</span>"))).setIcon(west.gui.Dialog.SYS_QUESTION).setModal(true,false).addButton("yes",function(){a(1)}).addButton("no").show()};var u=function(){try{if(w.Character.homeTown.town_id==0||w.Character.money<=10){n=true;return}if(w.Character.position.x==w.Character.homeTown.x&&w.Character.position.y==w.Character.homeTown.y){if(n){n=false;(new west.gui.Dialog("Deposit your Cash",e("<span class='twdb_banking'>You have arrived to your Hometown. Would you like to deposit your Cash? <br />Money: "+w.Character.money+"</span>"))).setIcon(west.gui.Dialog.SYS_QUESTION).setModal(true,false).addButton("yes",function(){n=true;a(w.Character.homeTown.town_id)}).addButton("no").show()}}else{n=true}}catch(t){Error.report(t,"autoDeposit")}};var a=function(e){if(w.Character.money<=0){return}w.BankWindow.townid=e;w.BankWindow.DOM=(new west.gui.Textfield("tb_balance_input_"+w.BankWindow.townid)).setSize(10).setValue(w.Character.money).getMainDiv();w.BankWindow.Balance.add()};return t}($);Debugger.Bank=Bank;var Market=function(e){var t={};var n=false;var r=false;var i={};var s={};var o=function(){if(s.ready)return;if(Settings.get("marketmap",true)){GameInject.addTabOnMarketWindow("Marketmap","marketmap",function(){c()});TWDB.Util.addCss(".twdb_mmap_point { width: 7px;"+"height: 7px;"+"background-color: #F00;"+"position: absolute;"+"border: 1px solid #000;"+"border-radius: 5px; }")}if(Settings.get("marketreminder",true)){GameInject.MarketOfferTable(function(e){u(e)});GameInject.MarketWatchlistTable(function(e){a(e)});l.init()}s.ready=true};s=Loader.add("Market","tw-db Market",o,{Settings:true});var u=function(t){for(var n=0;n<t.length;n++){var r=t[n];var i=e('<div class="mpo_alert" />');e(MarketWindow.offerTable.getMainDiv()).children().find(".marketBidsData_"+r.market_offer_id).append(i);if(!r.isFinished){i.append(f(r))}}};var a=function(t){for(var n=0;n<t.length;n++){var r=t[n];var i=e('<div class="mpo_alert" />');e(MarketWindow.watchlistTable.getMainDiv()).children().find(".marketWatchData_"+r.market_offer_id).append(i);if(!r.isFinished){i.append(f(r))}}};var f=function(t){var n=e('<img src="'+Images.iconAlarm+'" />').css({cursor:"pointer"});n.click(function(e,t){return function(){l.create(e,t)}}(t,n));if(l.exists(t.market_offer_id)===false){n.css("opacity",.5)}return n};var l=function(e){var t={},n={},r={};t.init=function(){var e=Cache.load("marketreminder");if(isDefined(e)){n=e}for(var t in n){i(t)}};t.exists=function(e){return isDefined(n[e])};var i=function(e){var t=n[e],r=Math.max(t.ends*1e3-(new Date).getTime()-t.reminder*60*1e3,100);t.timer=setTimeout(function(e){return function(){u(e)}}(e),r)};var s=function(e,r,s){var o=parseInt(r.getValue(),10);if(isNaN(o)||o<1){t.create(e,s);return}if((new Date).getTime()/1e3+o*60>=e.auction_end_date){(new UserMessage("?remindertoolate")).show();t.create(e,s);return}if(t.exists(e.market_offer_id)){clearTimeout(n[e.market_offer_id].timer);delete n[e.market_offer_id].timer}n[e.market_offer_id]={ends:e.auction_end_date,reminder:o,id:e.market_offer_id,item:e.item_id};Cache.save("marketreminder",n);i(e.market_offer_id)};var o=function(e){delete n[e];Cache.save("marketreminder",n)};var u=function(t){var r=n[t],i=ItemManager.get(r.item),s=new OnGoingEntry;s.init();s.setTooltip("auction: "+i.name+", End: "+Number(r.ends-(new Date).getTime()/1e3).getTimeString4Timestamp());s.setImage(e('<img src="'+Images.notiBell+'" />'));WestUi.NotiBar.add(s);TitleTicker.setNotifyMessage("auction: "+i.name+", End: "+Number(r.ends-(new Date).getTime()/1e3).getTimeString4Timestamp());AudioController.play(AudioController.SOUND_NEWMSG);o(t)};t.create=function(r,i){var u=e("<div />").append('<span style="position:relative; width:100%;display:block;">End of Auction: '+r.auction_ends_in.getTimeString4Timestamp()+"</span>"),a=(new west.gui.Textfield("twdb_analyser_last")).maxlength(4).onlyNumeric().setLabel("Remind before Auction ends: ").setPlaceholder("Minutes");u.append(a.getMainDiv());if(t.exists(r.market_offer_id)){a.setValue(n[r.market_offer_id].reminder);i.css("opacity",1)}else{i.css("opacity",.5)}var f=(new west.gui.Dialog("Marketreminder",u)).setIcon(west.gui.Dialog.SYS_QUESTION).setModal(true,false,{bg:w.Game.cdnURL+"/images/curtain_bg.png",opacity:.4}).addButton("ok",function(){i.css("opacity",1);s(r,a,i)});if(t.exists(r.market_offer_id)){f.addButton("delete",function(){o(r.market_offer_id);i.css("opacity",.5)})}f.addButton("cancel",function(){}).show()};return t}(e);var c=function(){try{window.MarketWindow.window.showLoader();window.MarketWindow.window.setTitle("Marketmap").setSize(840,655).addClass("premium-buy");var t=-111,s=-1;r=e('<div style="position:relative;display:block;margin:10px 9px 10px 9px;width:770px;height:338px;" />');for(var o=1;o<16;o++){if(o==8){s+=169;t=-111}t+=110;var u=e('<img style="position:absolute;border:1px solid #000;width:110px;height:169px;left:'+t+"px;top:"+s+'px;" src="'+Game.cdnURL+"/images/map/minimap/county_"+o+'.jpg" />');if(o==4){u.css({height:"114px"})}else{if(o==11){u.css({height:"114px",top:s+55+"px"})}else{if(o==15){u.css({height:"108px",width:"109px",left:"329px",top:"114px"})}}}r.append(u)}n=e("<div />").append(r);e(MarketWindow.window.getContentPane()).find(".marketplace-marketmap").children().remove();e(MarketWindow.window.getContentPane()).find(".marketplace-marketmap").append(n);i={};p()}catch(a){Error.report(a,"Market map")}};var h=function(e,t,n,r,s,o,u){if(!isDefined(i[e])){i[e]={name:t,town_id:e,x:n,y:r,count:0,offers_end:{},offers_unend:{},money:0,distance:window.Map.calcWayTime(window.Character.position,{x:n,y:r}).formatDuration()}}var a=i[e];if(s!==""){if(!isDefined(a.offers_end[s.item_id])){a.count++;a.offers_end[s.item_id]=s}else{a.offers_end[s.item_id].count+=s.count}}if(o!==""){if(!isDefined(a.offers_unend[o.item_id])){a.count++;a.offers_unend[o.item_id]=o}else{a.offers_unend[o.item_id].count+=o.count}}if(u!==0){a.money+=u}};var p=function(){Ajax.remoteCall("building_market","fetch_bids",{},function(e){if(e.error)return(new UserMessage(e.msg,UserMessage.TYPE_ERROR)).show();var t=e.msg.search_result;for(var n=0;n<t.length;n++){if(t[n].auction_ends_in<0||t[n].current_bid==t[n].max_price){var r={item_id:t[n].item_id,count:parseFloat(t[n].item_count)};var i=""}else{var i={item_id:t[n].item_id,count:parseFloat(t[n].item_count)};var r=""}h(t[n].market_town_id,t[n].market_town_name,t[n].market_town_x,t[n].market_town_y,r,i,0)}d()})};var d=function(){Ajax.remoteCall("building_market","fetch_offers",{page:0},function(e){if(e.error)return(new UserMessage(e.msg,UserMessage.TYPE_ERROR)).show();var t=e.msg.search_result;for(var n=0;n<t.length;n++){var r="";if(t[n].auction_ends_in<0&&!t[n].current_bid){r={item_id:t[n].item_id,count:parseFloat(t[n].item_count)}}h(t[n].market_town_id,t[n].market_town_name,t[n].market_town_x,t[n].market_town_y,r,"",t[n].current_bid)}v()})};var v=function(){for(var t in i){var n=i[t];var s='<div style="max-width: 305px;"><b>'+n.name+"</b>"+(n["money"]==0?"":" "+n["money"]+"$")+"<br/>";var o=0,u;for(var a in n["offers_end"]){o++;if(o>19){s+=" ... ";break}u=n["offers_end"][a];if(n["offers_end"][a]!==0){s+='<div class="item item_inventory"><img width="53" height="53" src="'+ItemManager.get(a).image+'" class="tw_item item_inventory_img dnd_draggable dnd_dragElem" style="margin-left:3px;margin-top:4px;"><span class="count" style="display: block;"><p>'+u.count+"</p></span></div>"}}for(a in n["offers_unend"]){o++;if(o>19){s+=" ... ";break}u=n["offers_unend"][a];if(n["offers_unend"][a]!==0){s+='<div style="opacity:0.35" class="item item_inventory"><img width="53" height="53" src="'+ItemManager.get(a).image+'" class="tw_item item_inventory_img dnd_draggable dnd_dragElem" style="margin-left:3px;margin-top:4px;"><span class="count" style="display: block;"><p>'+u.count+"</p></span></div>"}}s+="</div>";e("<div />").css({left:n.x/(181*window.Map.tileSize)*770-5+"px",top:n.y/(79*window.Map.tileSize)*338-5+"px"}).attr({"class":"twdb_mmap_point",id:t,title:s}).click(function(e){return function(){TownWindow.open(e.x,e.y)}}(n)).appendTo(r)}e("<img src='"+to_cdn("images/map/minimap/icons/miniicon_pos.png")+"' />").css({left:Character.position.x/(181*window.Map.tileSize)*770-8+"px",top:Character.position.y/(79*window.Map.tileSize)*338-8+"px",width:"16px",height:"16px"}).attr({"class":"mmap_mappoint",id:"mmap_icon_pos",title:"Your Position"}).appendTo(r);m()};var m=function(){try{var t=[],r,s,o;for(r in i){t.push({id:r,distance:i[r].distance})}t.sort(function(e,t){return e.distance==t.distance?0:e.distance>t.distance?1:-1});o="";for(var u=0;u<t.length;u++){var a=i[t[u].id];o+='<div><a onclick="TownWindow.open('+a.x+", "+a.y+');">'+a.name+"</a>"+' <a title="Show Town on Map" onclick="Map.center('+a["x"]+", "+a["y"]+')"><img src="'+Game.cdnURL+'/images/icons/center.png" /></a>'+" Distance: "+a["distance"]+' <a title="Travel to Town" onclick="TaskQueue.add(new TaskWalk('+a.town_id+",'town'))\"><img src=\""+Game.cdnURL+'/images/map/icons/instantwork.png"></a>'+(a["money"]==0?"":" "+a["money"]+"$")+"<br />";for(s in a["offers_end"]){var f=a["offers_end"][s];if(a["offers_end"][s]!==0){var l=new ItemPopup(ItemManager.get(s));o+='<div class="item item_inventory" title="'+l.getXHTML().escapeHTML()+'"><img width="53" height="53" src="'+ItemManager.get(s).image+'" class="tw_item item_inventory_img dnd_draggable dnd_dragElem" style="margin-left:3px;margin-top:4px;"><span class="count" style="display: block;"><p>'+f.count+"</p></span></div>"}}for(s in a["offers_unend"]){var f=a["offers_unend"][s];if(a["offers_unend"][s]!==0){var l=new ItemPopup(ItemManager.get(s));o+='<div style="opacity:0.35" class="item item_inventory" title="'+l.getXHTML().escapeHTML()+'"><img width="53" height="53" src="'+ItemManager.get(s).image+'" class="tw_item item_inventory_img dnd_draggable dnd_dragElem" style="margin-left:3px;margin-top:4px;"><span class="count" style="display: block;"><p>'+f.count+"</p></span></div>"}}o+="</div>";for(var c=0;c<=(a.count-a.count%12)/12;c++){o+=a.count==0?"<br/>":"<br/><br/><br/><br/>"}}var h=new west.gui.Scrollpane;e(h.getMainDiv()).css({height:"200px","margin-left":"8px"});h.appendContent(o);n.append(h.getMainDiv())}catch(p){Error.report(p,"Market createTownList")}window.MarketWindow.window.hideLoader()};return t}($);Debugger.Market=Market;var Fort=function($){var _self={};var loader={};var init=function(){if(loader.ready){return}if(Settings.get("enhancedfortrecruitment",true)){inject()}loader.ready=true};loader=Loader.add("Fort","tw-db Fort",init,{Settings:true});var inject=function(){try{var gradeValues={TRAITOR:"-2",RESERVIST:"-1",RECRUIT:"0",PRIVATE:"1",SERGEANT:"2",CAPTAIN:"3",GENERAL:"4"};var gradeNames={"-2":"traitor","-1":"reservist",0:"recruit",1:"private",2:"sergeant",3:"captain",4:"general"};var getGradeImg=function(e,t,n,r){try{return'<img class="'+(n||"")+'" src="'+window.Game.cdnURL+"/images/chat/servicegrade_"+gradeNames[e]+'.png" title="'+(t?window.Chat.rankTitles[gradeNames[e]].escapeHTML():"")+(isDefined(r)&&r!==""?" ("+r+")":"")+'" />'}catch(i){Error.report(i,"getGradeImg")}};var newfunction=String(FortBattleWindow.updateRecruitlist);newfunction=newfunction.replace(/totalCnt\s{0,1}=\s{0,1}0;/," totalCnt = 0 , totalCntTotal = 0 , gradeCountTotal = { '-2': 0, '-1': 0, '0': 0, '1': 0, '2': 0, '3': 0 };");newfunction=newfunction.replace(/gradeCount\[g\]/,"gradeCount[g] + ' [' + gradeCountTotal[g] + ']'");newfunction=newfunction.replace(/\+\s{0,1}totalCnt\s{0,1}\+/,"+ totalCnt + ' [' + totalCntTotal + ']' +");newfunction=newfunction.replace(/if\(this\.preBattle\.isHidden\(list\[i\]\['class'\],'rank_'\+priv\)\)continue;/g,"totalCntTotal++;gradeCountTotal[priv]++;if(this.preBattle.isHidden(list[i]['class'],'rank_'+priv,list[i].coords.x,list[i].coords.y))continue;");newfunction=newfunction.replace(/getGradeImg\(priv,true,'recruitplayer recruitplayer-'\+i\)/g,"getGradeImg(priv,true,'recruitplayer recruitplayer-'+i,list[i].officername||'')");newfunction=newfunction.replace(/\.addColumns\(\['count','name','town','rank','class','status','evaluated'\]\)/g,".addColumns(['count','name','town','rank','class','status','healthpoints'])");newfunction=newfunction.replace(/\.appendToThCell\('head','evaluated',.*,.*\);var list=/g,".appendToThCell('head','healthpoints','Sort by health','<span class=\"sort sort-healthpoints\">'+'Lp'+'</span>');var list=");newfunction=newfunction.replace(/evaluated:list\[i\]\.officername\|\|''/g,"healthpoints:'<p style=\"font-weight: 700; color: '+((this.preBattle.battleData.fortCoords.x-list[i].coords.x==0&&this.preBattle.battleData.fortCoords.y-list[i].coords.y==0) ? 'rgb(0, 153, 0)' : ((Math.abs(this.preBattle.battleData.fortCoords.x-list[i].coords.x)<=500&&Math.abs(this.preBattle.battleData.fortCoords.y-list[i].coords.y)<=500) ? 'rgb(255, 119, 0)' : 'rgb(255, 0, 0)'))+'\">'+list[i].currhealth+'/'+list[i].maxhealth+'</p>'");eval("FortBattleWindow.updateRecruitlist=(function(){ var lastStamp; return "+newfunction+"})();");var newfunction=String(PreBattle.getSortedPlayerlist);newfunction=newfunction.replace(/pa\s{0,1},\s{0,1}pb\s{0,1}\)/g,"pa,pb,that)");eval("PreBattle.getSortedPlayerlist = "+newfunction);var fb_sort=String(FortBattleWindow.recruitListClick);fb_sort="FortBattleWindow.recruitListClick="+fb_sort;fb_sort=fb_sort.replace(/var hidden=function\(classKey,privKey\){return that\.preBattle\.isHidden\(classKey,'rank_'\+privKey\);};/g,"var hidden=function(classKey,privKey, location){return that.preBattle.isHidden(classKey,'rank_'+privKey, null, null, location);};");fb_sort=fb_sort.replace(/return{message:sorting,title:title};/g,"else if(key=='healthpoints'){title='Sort by health';sorting.append(getSortLink('Ascending current Health','>currhealth'));sorting.append(getSortLink('Descending current Health','<currhealth')); sorting.append(getSortLink('Ascending maximum Health','>maxhealth'));sorting.append(getSortLink('Descending maximum Health','<maxhealth'));sorting.append('<br />');sorting.append(getSortLink('Ascending Distance','>distance'));sorting.append(getSortLink('Descending Distance','<distance'));sorting.append(getVisLink(hidden(null,'-3','atfort')?'show Player at Fort':'hide Player at Fort','atfort'));sorting.append(getVisLink(hidden(null,'-3','nearbyfort')?'show Player near Fort':'hide Player near Fort','nearbyfort'));sorting.append(getVisLink(hidden(null,'-3','notatfort')?'show Player not near Fort':'hide Player not near Fort','notatfort'));}return{message:sorting,title:title};");eval(fb_sort);PreBattle.recruitSorting.currhealth=function(e,t,n){return n?e.currhealth==t.currhealth:e.currhealth<t.currhealth};PreBattle.recruitSorting.maxhealth=function(e,t,n){return n?e.maxhealth==t.maxhealth:e.maxhealth<t.maxhealth};PreBattle.recruitSorting.distance=function(e,t,n,r,i,s){};PreBattle.isHidden=function(e,t,n,r,i){if(i==null){var s=this.battleData.fortCoords.x-n;var o=this.battleData.fortCoords.y-r;var u="notatfort";if(s==0&&o==0){u="atfort"}else if(Math.abs(s)<=500&&Math.abs(o)<=500){u="nearbyfort"}}else if(i!==null){var u=i}return e!==undefined&&this.recruitlistVisibility[e]||t!==undefined&&this.recruitlistVisibility[t]||u!==undefined&&this.recruitlistVisibility[u]}}catch(e){Error.report(e,"Fort")}};return _self}($);Debugger.Fort=Fort;var CCstarter=function(e){var t={};var n={};var r=function(){if(n.ready){return}ClothCalc.ready=n.ready;ClothCalc.init();n.ready=true};n=Loader.add("ClothCalc","tw-db ClothCalc",r,{});return t}($);Debugger.CCstarter=CCstarter;if((w.location.href.indexOf(".the-west.")!==-1||w.location.href.indexOf(".tw.innogames.")!==-1)&&w.location.href.indexOf("game.php")!==-1){Loader.init()}})(jQuery)}});